how to generate plot
조회 수: 1 (최근 30일)
이전 댓글 표시
Hi, I trying to plot de, da, dr, and dT but I can not get any line or curve. I would like to know what could be my mistake or what I'm missing. any help will be greatly appreciated. Thanks
clear all
close all
% Lateral-directional nondimensional stability and control derivatives
Cm0 = 0.0134;
Cmw = -0.240;
Cmq = -4.49;
Cmde = -0.364;
thetaEq = 2*(pi/180); % Initial guess for pitch (rad)
CT0 = 0.197;
rho = 1.225;
S = 0.285;
VEq = 12; % Initial guess for speed (m/s)
phi = 0.5;
Power = 200; % Maximum Power (W)
t = 10;
% Control deflections
deEq = -(Cm0 + Cmw*sin(thetaEq))/Cmde; % Initial guess for elevator (rad)
dTEq = (CT0*rho*S*(VEq^3))/(2*Power); % Nominal throttle setting
de = deEq;
da = 0.5;
%da = - 0.5*phi - 2*pr; % Add some roll stiffness and damping
dr = 0;
dT = dTEq;
plot(t,da)
댓글 수: 2
James Tursa
2022년 9월 21일
You've got these two lines:
t = 10;
da = 0.5;
So yes, plot(t,da) isn't going to be very interesting.
What are the equations your are trying to plot? Do you have an image of those equations you can post?
답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Environmental Models에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!