Hey all! So I'm implementing a code which essentially runs through the length of condIds (which is 1X1070 double) as follows. For further context to what the variable refer to, condIds refer to the image file used for a particular trial. I'm retrieving all possible trials in a bunch of files for one single condId (denoted by myTrials).
for ii = 1:length(condIds)
myTrials = find(condIds == condIds(ii));
When I run the following code, it only loads myTrials for the last condId i.e 1070. WHy does it not iterate through each condId? Thanks in advance!