Al estar trabajando la grafica no aparece, se abre la ventana pero solo aparece la cuadricula sin ningun tipo de lineas

12 views (last 30 days)
%Graficas GRADIENTE de ascenso
S=14.864 %m2
S = 14.8640
Cdo=0.037
Cdo = 0.0370
w=10691.8 %máximo peso despegue [N]
w = 1.0692e+04
k=0.0707
k = 0.0707
%------------- 0 M----------------
V=29.8:0.2:66.4 %[N]
V = 1×184
29.8000 30.0000 30.2000 30.4000 30.6000 30.8000 31.0000 31.2000 31.4000 31.6000 31.8000 32.0000 32.2000 32.4000 32.6000 32.8000 33.0000 33.2000 33.4000 33.6000 33.8000 34.0000 34.2000 34.4000 34.6000 34.8000 35.0000 35.2000 35.4000 35.6000
%Potencia requerida
Preqer=(0.5*1.225*V.^3*Cdo*S+2*k*(w.^2*(1.225*V*S).^-1)) % W
Preqer = 1×184
1.0e+05 * 0.3870 0.3869 0.3867 0.3867 0.3866 0.3866 0.3867 0.3868 0.3870 0.3872 0.3875 0.3878 0.3882 0.3886 0.3890 0.3895 0.3901 0.3907 0.3913 0.3920 0.3927 0.3935 0.3943 0.3952 0.3961 0.3971 0.3981 0.3991 0.4002 0.4013
%Potencia disponible
j=V/(45*1.93)
j = 1×184
0.3431 0.3454 0.3477 0.3500 0.3523 0.3546 0.3569 0.3592 0.3615 0.3638 0.3661 0.3685 0.3708 0.3731 0.3754 0.3777 0.3800 0.3823 0.3846 0.3869 0.3892 0.3915 0.3938 0.3961 0.3984 0.4007 0.4030 0.4053 0.4076 0.4099
n=-8.4375*j.^4+18.426*j.^3-15.487*j.^2+6.5193*j-0.4548
n = 1×184
0.5862 0.5886 0.5909 0.5932 0.5955 0.5978 0.6000 0.6023 0.6045 0.6067 0.6088 0.6109 0.6131 0.6152 0.6172 0.6193 0.6213 0.6233 0.6253 0.6273 0.6293 0.6312 0.6331 0.6351 0.6369 0.6388 0.6407 0.6425 0.6444 0.6462
Pdisp=((135-0.01342*0)*1000*n) % W
Pdisp = 1×184
1.0e+05 * 0.7913 0.7946 0.7977 0.8009 0.8040 0.8070 0.8101 0.8131 0.8160 0.8190 0.8219 0.8248 0.8276 0.8305 0.8333 0.8360 0.8388 0.8415 0.8442 0.8469 0.8495 0.8521 0.8547 0.8573 0.8599 0.8624 0.8649 0.8674 0.8699 0.8724
RC=((Pdisp-Preqer)/(10691.8))*(180/pi)
RC = 1×184
216.6637 218.4763 220.2431 221.9647 223.6416 225.2744 226.8635 228.4095 229.9129 231.3741 232.7936 234.1719 235.5095 236.8067 238.0640 239.2819 240.4607 241.6009 242.7028 243.7669 244.7935 245.7831 246.7359 247.6523 248.5327 249.3774 250.1867 250.9611 251.7007 252.4059
grad=RC/V
grad = 3.6027
plot(V,grad,'k'),xlabel('V [m/s]'),ylabel('Rc [m/s]')
grid on
hold on

Accepted Answer

Jonas
Jonas on 21 Jun 2022
use RC./V instead of RC/V to divide element by element

More Answers (0)

Categories

Find more on Creating and Concatenating Matrices in Help Center and File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!