Transfer Function with Data in Table

for example:
K = [1, 2, 3, 4];
D = [2, 3, 4, 5];
How can i create a tranfer fuction with arrays like that
i already did
w=tf(K,[D 1]);
but it give me wrong answer/
any ideal??
thanks everyone

1 件のコメント

Walter Roberson
Walter Roberson 2020 年 4 月 9 日
What output are you expecting ?

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

 採用された回答

Walter Roberson
Walter Roberson 2020 年 4 月 9 日
編集済み: Walter Roberson 2020 年 4 月 9 日

1 投票

arrayfun(@(k,d) tf(k,[d 1]), K, D)
... as a guess about what you intend.
The same thing can be done in one tf() call:
tf(num2cell(K), arrayfun(@(d) [d 1],D,'uniform',0))

その他の回答 (0 件)

カテゴリ

ヘルプ センター および File ExchangeMATLAB についてさらに検索

質問済み:

2020 年 4 月 9 日

編集済み:

2020 年 4 月 10 日

Community Treasure Hunt

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

Start Hunting!

Translated by