I'm a first year Engineering student, Currently sitting down to solve basic problems by MATLAB. Anyway, I have a problem that I couldn't figure out how to solve.
This problem requires to create a for loop that allows the user to enter the number of students. Each student should be assigned to a grade in another variable, let's assume it's called B. The question is, in this case, how can I make a matrix out of the variable B? The goal of creating B as a matrix is to be able to do some calculations, like calculating the biggest grade, and the average of the grades?
I started like this:
n=input('Enter the number of the student: '); for a=1:n B=input('Enter the grades: '); end
I want the grades in variable B to be assigned into a matrix rather than single values? How can this be done?
Thanks in advance.