tpmp.m
来自「详细介绍了Mathlab的使用方法与技巧」· M 代码 · 共 17 行
M
17 行
function tpmp
global p Cinf Mp tp
jieshu=0;
jj=find(p>=0);
if length(jj)>0
trdisp1=['系统不稳定超调参数和峰值时间无意义!'];
helpdlg(trdisp1,'时域指标');
else
if Mp<=Cinf
trdisp=[' 系统无超调'];
helpdlg(trdisp,'时域指标');
else
mp=(Mp-Cinf)*100/Cinf;
tpmpdisp=['峰值时间tp=' num2str(tp) 's 最大超调量Mp=' num2str(mp) '%'];
helpdlg(tpmpdisp,'时域指标');
end
end
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?