for i=1:5 x(i)=i+1;enddisp(x(i));
MATLAB: I would like to get all values of for loop outside loop,but this program gives me the last value only
i knw its simple but cant figure out:p
i knw its simple but cant figure out:p
for i=1:5 x(i)=i+1;enddisp(x(i));
Best Answer