Hello! I am struggling to create 16 2D subplots based on data in a matrix 16x800x40, which correspond to 16=conditions, 800=bins (points to be included in each trace), 40=repetitions of the same condition. I want to make 40 different traces, all on one of the 16th subplot (so 16 plots, each having 40 traces on). I know I probably need to create some nested for loop but so far could not work it out.
Would appreciate any help!!
this is what I've tried so far….
for s=1:size(singleTrialTraces,3) for k=1:size(singleTrialTraces,1) subplot(4,4,k) plot(singleTrialTraces(k,:,s)) axis tight hold on end end
Best Answer