フィルターのクリア

I want to simulate with various input.

2 ビュー (過去 30 日間)
Saka Toshi
Saka Toshi 2020 年 7 月 30 日
コメント済み: Saka Toshi 2020 年 7 月 31 日
sys = 1(1+s)
input = 1/s - exp(-2*s)/s
So, how can I get lsim output "sys*input" ??
I must make digital signal of input??

採用された回答

Paul
Paul 2020 年 7 月 30 日
As a general approach, you can compute the impulse response of the product of the transfer function and the input.
H = tf(1,[1 1]); % assuming typo in the original question.
U1 = tf(1,[1 0]);
U2 = tf(1,[1 0],'InputDelay',2);
t = 0:.001:10;
y = impulse(H*(U1 - U2),t);
figure;plot(t,y),grid
In your particular case, the output is the difference between the step response and the step response delayed by t=2:
% assumes that any(t==2) is true
y1 = step(H,t);
y2 = 0*y1;
ii = find(t>=2);
y2(t>=2) = y1(1:length(ii));
figure;plot(t,y,t,y1-y2,'x'),grid
  1 件のコメント
Saka Toshi
Saka Toshi 2020 年 7 月 31 日
Thank you!!
You make me more advanced!! :)

サインインしてコメントする。

その他の回答 (0 件)

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by