필터 지우기
필터 지우기

I am trying to plot

조회 수: 2 (최근 30일)
dan
dan 2018년 4월 2일
답변: Star Strider 2018년 4월 2일
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);

채택된 답변

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

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Line Plots에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by