求系统对输入的响应 matlab,LTI系统对输入的响应

ti系统对输入的响应

matlab命令lsim使给定系统函数H(s),计算一个LTI系统对输入x(t)的响应更加方便。设

04cda2c564350414f677af4309d007c7.png

我们要求出对输入)()2cos()(tuttxπ=的响应。下面的脚本计算了响应,并绘制出图像。

figure(1);

num = [5 0]; %Define numerator polynomial

14

den = [1 2 101]; %Define denominator polynomial

t = linspace(0, 10, 401); %Define a time vector

u = cos(2*pi*t); %Compute the cosine input function

[y, x] = lsim(num, den, u, t); %Compute the cosine input function

plot(t, y, ‘r’, t, u, ‘b’); %Plot the output in red and the input in blue

xlabel(‘Time(s)’);

ylabel(‘Amplitude’);

203e3f69f7e76d8d5310da00f97edc05.png 

图像如图6所示。

699ba7046c51816a17b33a7caa85f179.png

0

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

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值