Here is my coding,I get no errors and it produces a figure, just no plot. I want to plot amplitude vs speed, it will be constant so it should just be one line straight across.
clear allclc%%%given values
k=53.33;omega=sqrt(k.*386/3330);w=3330;mprime=50/386;wprime=50;xi=0.1;%%%create Array
speed=linspace(0,5000,500);Fomega=speed.*2.*pi()/60;Fo=mprime.*Fomega.^2;r=Fomega/omega;ust=Fo/k;U=ust/sqrt(((1-r.^2).^2)+((2.*r.*xi).^2));%%%Plot Response%%%
plot(speed,U, 'LineWidth', 2,'Color', [0 0 0]);title ('Amplitude vs RPM')%%%Label the X-Axis of the Plot%%%
xlabel('Speed (RPM)');%%%Label the Y-Axis of the Plot%%%
ylabel ('Amplitude ');
Best Answer