%How would i form an array if i had 5 inputs like this of random number% displayed at the end.clc,clearx = 12;num = 0;for index = 1:5 y = input('Guess the number? ','s'); z = y + num; if z >= 13 disp(' Too High! ') elseif z <= 11 disp(' Too Low!') else; z = x; disp(' Correct! ') break endend
MATLAB: How to form an array with the input values
arrayMATLAB and Simulink Student Suite
Best Answer