I have a dataset with two groups id_group (young = 1, old = 2) in an xlsx format.
They did a training study of 20 sessions where I have for each person 1 value per session.
How can I now create a plot showing the course of the results over the 20 sessions for the young group and the old group in the same plot?
These are the means of the results for all participants:
y = [x_training_num_1,x_training_num_2, x_training_num_3, x_training_num_4,x_training_num_5, x_training_num_6, x_training_num_7, x_training_num_8, x_training_num_9, x_training_num_10, x_training_num_11, x_training_num_12, x_training_num_13, x_training_num_14,x_training_num_15, x_training_num_16, x_training_num_17, x_training_num_18, x_training_num_19, x_training_num_20];
then I tried to find the groups:
g = findgroups(id_group);
and I tried to plot it:
but then this error occurs:
Error using plot
There is no group property on the Line class.
Error in behavioralscript (line 33)
Thanks for your help!