I want the code to randomize the rows and present the stimulus by taking the each row values for 10 times. Here is the code that I have written.
Decentration = [0, 0.5; 0, 0; 0, -0.5; -0.5,0; 0.5, 0];trial = 10;for i = 1:trial; for iter= 1:length(Decentration); Decentration = Shuffle(Decentration, 2); XDecentration = Decentration(:,1); YDecentration = Decentration(:,2);
this presents the stimulus for 50 times but in a different proportion.
Please suggest a code for presenting each row of Decentation to be selected 10 times.
Best Answer