信号与系统matlab答案,信号与系统 MATLAB 实验 课后习题答案

a=[1,1,1]; b=[1,1]; sys=tf(b,a); t=[0:0.01:10]; figure;

subplot(2,2,1); step(sys);

subplot(2,2,2);

x_step=zeros(size(t)); x_step(t>0)=1; x_step(t==0)=1/2; lsim(sys,x_step,t); subplot(2,2,3); impulse(sys,t);

title('Impulse Response'); xlabel('Time(sec)'); ylabel('Amplitude'); subplot(2,2,4);

x_delta=zeros(size(t)); x_delta(t==0)=100;

[y1,t]=lsim(sys,x_delta,t); y2=y1;

plot(t,y2);

title('Impulse Response'); xlabel('Time(sec)'); ylabel('Amplitude');

c709a0ad4601de21b886dbb9e06e7f9b.png

8a62aac5c803d1d397208293bd1690e3.png

00.5

11.5

Step Response

Time (sec)A m p l i t u d e

0.5

1

1.5

Linear Simulation Results

Time (sec)

A m p l i t u d e

cec1c4eeb9b4d87140bc1c8d999b47de.png

e4f1fdad88e89e262199d6f545ac6379.png

5

10

-0.50

0.5

1

Impulse Response

Time(sec) (sec)

A m p l i t u d e

5

10

-0.5

0.5

1Impulse Response

Time(sec)

A m p l i t u d e

  • 0
    点赞
  • 5
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值