ex9_11.m
来自「基于WEB与MATLAB编写的信号处理的源码,书名为"应用WEB和MATLAB的」· M 代码 · 共 17 行
M
17 行
% Example 9.11
% second order response
% poles are -1 + 4j and -1 - 4j
num = 17; den = [1 2 17];
t = 0:10/300:10;
y = step(num,den,t);
env = 1-sqrt(17)/4*exp(-t);
plot(t,y,t,env,'--');
xlabel('Time (sec)')
ylabel('y(t)')
title('Second order step response')
% the following inserts a legend
hold on
plot([3 4],[.6 .6],[3 4],[.5 .5],'--')
text(4.3,.6,'y(t)')
text(4.3,.5,'envelope of decay')
hold off
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?