📄 ploteng.m
字号:
function ploteng(eng)
%PLOTENG Plot rocket motor thrust curve.
% PLOTENG(ENG) plots the thrust curve and displays
% its motorclass and total impulse.
%
% See also LOADENG, SAVEENG, RCKSIM.
% Copyright (c) 2003-06-10, B. Rasmus Anthin.
t=[0;eng.thrust(:,1)];
F=[0;eng.thrust(:,2)];
figure
plot(t,F,'.-')
xlabel('t [s]')
ylabel('F(t) [N]')
title(eng.name)
grid
axis tight
I=trapz(t,F);
mc=motorclass(I);
Ii=motorclass(mc);
fprintf('\n %s : %s < %.2f <= %s [Ns]\n\n',mc,num2str(Ii(1)),I,num2str(Ii(2)));
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -