I am very new to Matlab, and I am trying to plot multiple figures from a dataset using a for loop.
However, it's not working and I don't how to solve it.
The idea is that the loop plots 42 different figures (one for each participant), and that the first figure contains the data from the 1:14 row from columns 3 (x-axis) and column 5 (reaction times), figure 2 should contain the data from the 15:28 row from columns 3 (x-axis) and column 5 (y-axis), etc..
Below is the code that I have used:
Thai_UniversalPictures_Categorization = readtable('Thai_UniversalPictures_Categorization.xlsx');
for i = 1 : 14 : 588(Thai_UniversalPictures_Categorization);
x = Thai_UniversalPictures_Categorization(i:1+13, 3);
y = Thai_UniversalPictures_Categorization(1:1+13, 5);
I get an error which says:
Error using tabular/plot
Too many input arguments.
Error in outlierplots (line 11)
I hope you can follow my explanation and help me.
Best regards, Anne