フィルターのクリア

Changing a parameter in a trasferire function

2 ビュー (過去 30 日間)
Gaetano Ruocco
Gaetano Ruocco 2023 年 2 月 27 日
コメント済み: Paul 2023 年 2 月 27 日
I have the following transfer function
h = 1 for t<=0 and 0 for t>0
I have to determine the properties of the LTI system for t<=0 and t>0.
How can I make h change its value automatically ? Without doing two cases for h=1 and h=0
Thank you for your help
  1 件のコメント
Paul
Paul 2023 年 2 月 27 日
Hi Gaetano,
Assuming t is the independent variable of the the inverse transform of G(s), i.e., g(t) -> G(s), the coefficients in G(s) can't change as a function of time. LTI systems have constant coefficients. Can you clarify what t is how it enters into the problem?

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

採用された回答

Star Strider
Star Strider 2023 年 2 月 27 日
I demonstrated this in your earlier post: How to change a parameter in a model.
The same approach applies here —
s = tf('s');
G = @(h) s^2 / ((s+h)*(s+1));
t = [linspace(0, 10, 250); linspace(-10, 0, 250)];
figure
for k = 1:2
subplot(2,1,k)
step(G(k-1),t(k,:))
grid
title(sprintf('h = %d',k-1))
end
The function is not defined for t<0.
.
  2 件のコメント
Gaetano Ruocco
Gaetano Ruocco 2023 年 2 月 27 日
Thank you so much
Star Strider
Star Strider 2023 年 2 月 27 日
As always, my pleasure!

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

その他の回答 (0 件)

カテゴリ

Help Center および File Exchange2-D and 3-D Plots についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by