I do have a vector of quiz grade(which input by reader). the valid grades are in the range of 0:1:10. I have to use any/all test in a while loop
grades = input('Please enter the vector of your grades:')A = [0:1:10];while any(grades > A) ~= 1 disp('Please enter the correct vector of your grades') grades = input('Please enter the vector of your grades:')enddisp(strrep(['Your grade is: (' num2str(grades, ' %d,') ')'], ',)', ')'))
When I put a input which over the range, it still did not disp that I enter a wrong vector . Is that any part I should fix up?
Best Answer