[Solved] Store numbers in an array in MATLAB


Just use the following code:

num = []; % ToInitializeTheArray

for i=1:5
     num =  input('Enter value or enter 100 to stop: ');
     num(end+1)=num;
end

I’m new to MathLab myself I hope this helped

1

solved Store numbers in an array in MATLAB