MATLAB: How do i display all the values of this for loop

for loopMATLAB

L = input('Enter the Length ');
ne= input('Enter Number of Elements ');
a=L/ne;
for b = 1:ne
c = 0 + (b)*a;
end

Best Answer

for b = 1:ne
c = 0 + (b)*a%remove ;

end
or
c=zeros(1,ne);
for b = 1:ne
c(b) = 0 + (b)*a%remove ;
end
display(c);%all values stored and array