ploteng.m
来自「航天工程工具箱」· M 代码 · 共 23 行
M
23 行
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 + =
减小字号Ctrl + -
显示快捷键?