151 lines
3.1 KiB
Matlab
151 lines
3.1 KiB
Matlab
function csas_shoots_plot(rslt)
|
|
|
|
for idx=1:length(rslt)
|
|
plotTraj(rslt{idx}.rt_yout);
|
|
end
|
|
|
|
end
|
|
|
|
function plotTraj(yout)
|
|
t = yout.time;
|
|
sig = yout.signals;
|
|
|
|
figure(1);
|
|
set(gcf,'Position',[0 0 700 600],'Color',[1 1 1],'Renderer','painters');
|
|
figure(2);
|
|
set(gcf,'Position',[0 0 700 600],'Color',[1 1 1],'Renderer','painters');
|
|
figure(3);
|
|
set(gcf,'Position',[0 0 700 600],'Color',[1 1 1],'Renderer','painters');
|
|
figure(4);
|
|
set(gcf,'Position',[0 0 700 600],'Color',[1 1 1],'Renderer','painters');
|
|
figure(5);
|
|
set(gcf,'Position',[0 0 700 600],'Color',[1 1 1],'Renderer','painters');
|
|
|
|
figure(1);
|
|
subplot(3,1,1);
|
|
plot(t, sig(5).values(:,1).*57.3);
|
|
xlabel('t/s');
|
|
ylabel('\phi / ^o', 'Fontname','quot', 'FontSize', 14, 'Fontweight','bold');
|
|
% ylim([-10 10]);
|
|
hold on;
|
|
grid on;
|
|
|
|
figure(1);
|
|
subplot(3,1,2);
|
|
plot(t, sig(6).values(:,1).*57.3);
|
|
xlabel('t/s');
|
|
ylabel('p / ^o/s', 'Fontname','quot', 'FontSize', 14, 'Fontweight','bold');
|
|
% ylim([-50 50]);
|
|
hold on;
|
|
grid on;
|
|
|
|
figure(1);
|
|
subplot(3,1,3);
|
|
plot(t, sig(1).values(:,1).*57.3);
|
|
xlabel('t/s');
|
|
ylabel('\delta_a / ^o', 'Fontname','quot', 'FontSize', 14, 'Fontweight','bold');
|
|
% ylim([-20 20]);
|
|
hold on;
|
|
grid on;
|
|
|
|
figure(2);
|
|
subplot(3,1,1);
|
|
plot(t, sig(9).values.*57.3);
|
|
xlabel('t/s');
|
|
ylabel('\beta / ^o', 'Fontname','quot', 'FontSize', 14, 'Fontweight','bold');
|
|
ylim([-2 7]);
|
|
hold on;
|
|
grid on;
|
|
|
|
figure(2);
|
|
subplot(3,1,2);
|
|
plot(t, sig(6).values(:,3).*57.3);
|
|
xlabel('t/s');
|
|
ylabel('r / ^o/s', 'Fontname','quot', 'FontSize', 14, 'Fontweight','bold');
|
|
% ylim([-20 20]);
|
|
hold on;
|
|
grid on;
|
|
|
|
figure(2);
|
|
subplot(3,1,3);
|
|
plot(t, sig(3).values.*57.3);
|
|
xlabel('t/s');
|
|
ylabel('\delta_r / ^o', 'Fontname','quot', 'FontSize', 14, 'Fontweight','bold');
|
|
% ylim([-10 10]);
|
|
hold on;
|
|
grid on;
|
|
|
|
|
|
figure(3);
|
|
subplot(3,1,1);
|
|
plot(t, sig(5).values(:,2).*57.3);
|
|
xlabel('t/s');
|
|
ylabel('\theta / ^o', 'Fontname','quot', 'FontSize', 14, 'Fontweight','bold');
|
|
%ylim([-10 15]);
|
|
%plot(t, sig(7).values*57.3);
|
|
hold on;
|
|
grid on;
|
|
|
|
figure(3);
|
|
subplot(3,1,2);
|
|
plot(t, sig(6).values(:,2).*57.3);
|
|
xlabel('t/s');
|
|
ylabel('q / ^o/s', 'Fontname','quot', 'FontSize', 14, 'Fontweight','bold');
|
|
%ylim([-100 100]);
|
|
hold on;
|
|
grid on;
|
|
|
|
figure(3);
|
|
subplot(3,1,3);
|
|
plot(t, sig(2).values.*57.3);
|
|
xlabel('t/s');
|
|
ylabel('\delta_e / ^o', 'Fontname','quot', 'FontSize', 14, 'Fontweight','bold');
|
|
%ylim([-30 30]);
|
|
hold on;
|
|
grid on;
|
|
|
|
figure(4);
|
|
subplot(3,1,1);
|
|
plot(t, sig(15).values);
|
|
xlabel('t/s');
|
|
ylabel('TAS / m/s', 'Fontname','quot', 'FontSize', 14, 'Fontweight','bold');
|
|
hold on;
|
|
grid on;
|
|
|
|
figure(4);
|
|
subplot(3,1,2);
|
|
plot(t, sig(8).values.*57.3);
|
|
xlabel('t/s');
|
|
ylabel('\alpha / ^o', 'Fontname','quot', 'FontSize', 14, 'Fontweight','bold');
|
|
% ylim([-8 10]);
|
|
hold on;
|
|
grid on;
|
|
|
|
figure(4);
|
|
subplot(3,1,3);
|
|
plot(t, sig(4).values);
|
|
xlabel('t/s');
|
|
ylabel('thr / %', 'Fontname','quot', 'FontSize', 14, 'Fontweight','bold');
|
|
% ylim([-8 10]);
|
|
hold on;
|
|
grid on;
|
|
|
|
figure(5);
|
|
subplot(2,1,1);
|
|
plot(t, sig(12).values);
|
|
xlabel('t/s');
|
|
ylabel('ALT / m', 'Fontname','quot', 'FontSize', 14, 'Fontweight','bold');
|
|
% ylim([-8 10]);
|
|
hold on;
|
|
grid on;
|
|
|
|
figure(5);
|
|
subplot(2,1,2);
|
|
plot(t, sig(14).values);
|
|
xlabel('t/s');
|
|
ylabel('ROC / m/s', 'Fontname','quot', 'FontSize', 14, 'Fontweight','bold');
|
|
% ylim([-8 10]);
|
|
hold on;
|
|
grid on;
|
|
|
|
end |