not getting a plot

1 visualizzazione (ultimi 30 giorni)
Sourav singh
Sourav singh il 15 Mar 2021
Risposto: VBBV il 1 Apr 2021
MTOW= 242;
OEW=141.3119;
PAY=60;
SFC=0.29/3600;
g=9.8;
U=[0 5 10 15 20 25 30 35 40];
P=[32.91428 30.8628 26.5554 23.45806 22.92738 24.98139 29.61881 36.97433 47.2849];
U_by_P= U./P;
R=(U_by_P).*((MTOW-OEW-PAY)./(g.*SFC));
plot(U_by_P,PAY,'r')
  5 Commenti
Sourav singh
Sourav singh il 15 Mar 2021
when i am putting this..... plot(U_by_P,PAY*ones(1,length(U_by_P)),'r');
it shows error
Star Strider
Star Strider il 15 Mar 2021
Try this:
plot(U_by_P,PAY*ones(size(U_by_P)),'r')
That should work.

Accedi per commentare.

Risposte (1)

VBBV
VBBV il 1 Apr 2021
%f
plot(U_by_P,R,'r')
Try above. You might want plot of R and U_by_P

Categorie

Scopri di più su 2-D and 3-D Plots in Help Center e File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by