I am new to matlab so please bear with me. I am trying to show how y varies with the different u values. And im trying to to display that in a figure. But i dont seem get the saved data from the loop. Any suggestions?
c=3e8; %speed of light
u=0;while u<(c) y=1/(sqrt(1-((u^2)/(c^2)))); u=u+(0.01*c); endplot(u, y,'r')
Best Answer