% Program that add N numbers % Total number of numbers "N", and each number is provided % on the screen. SUM=0; N=input('N=' ); for i=1:N x=input('x='); SUM=SUM+x; % disp([i,SUM]); end disp([i,SUM]); % disp(x); % Notice that x is not a vector here.