Data.xlsx
is an excel file containing the data for 156 students. From cell 4 of the excel file, the 1st Student Number is displayed and if you increment by 7, you have the 2nd Student Number and so on up until the last cell 1094.
F = xlsread('Data.xlsx');
for ii = 4:7:1094
studentNumbers = disp(F(ii));
end
but this gives me an error saying "Too many output arguments
". However if I just specify disp(F(ii))
, it does not give me any error and displays all the student numbers in order.
Is there a better way to do this so that I can assign all these Student Numbers into an array called studentNumbers
?