MATLAB: Won’t this equation plot

equationfigurelineplotshowwon't show

Hey everyone I'm trying to get this code to plot the equation 'os' but it won't output anything onto my figure. Thanks for any help or suggestions, I appreciate it!
z=0.1:.05:.9;
os = 100*exp(-pi*z/(1-z.^2).^(1/2));
plot(z,y);

Best Answer

You need to vectorise your os assignment, then you have to tell plot to plot ‘os’ rather than ‘y’:
z=0.1:.05:.9;
os = 100*exp(-pi*z./(1-z.^2).^(1/2));
plot(z,os)