Azzera filtri
Azzera filtri

I am trying to plot

3 visualizzazioni (ultimi 30 giorni)
dan
dan il 2 Apr 2018
Risposto: Star Strider il 2 Apr 2018
The CL should be a 1x87 matrix but only comes out to one answer. Thank you for your help!
GrossWeight=207357; %lbs%
%wing span in feet%
b=108;
%wing area ft^2%
S=1700;
AR=6.86;
e=0.77;
%wing height above ground in feet%
Wh=8.2;
TAperengine=16000;%lb%
SFC=0.62;
Nengines=3;
ParCD=0.018;
Wf=54124;%fuel weight in lbs%
ro30000=0.000891;
dv=10;
Vinf=0:dv:860;%ft/s%
GW=ones(1,length(Vinf))*GrossWeight;
CL=GW/(0.5*ro30000*(Vinf.^2)*S);

Risposta accettata

Star Strider
Star Strider il 2 Apr 2018
You need to vectorizse the division in the ‘CL’ calculation:
CL=GW ./ (0.5*ro30000*(Vinf.^2)*S);
↑ ← VECTORISE HERE

Più risposte (0)

Categorie

Scopri di più su Line 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