フィルターのクリア

Transfer function using symbol

3 ビュー (過去 30 日間)
Peter
Peter 2011 年 10 月 18 日
コメント済み: Walter Roberson 2016 年 9 月 14 日
Hello,
is there anyway to create a transfer function with symbol?
like... tf(K*[1 1], [1 1 1]); keeping K as K, with out any value assign to it.
i tried that but it's giving me an error like this:
"Cell contents reference from a non-cell array object."
any idea?
thanks!

回答 (1 件)

Ashikur
Ashikur 2011 年 10 月 21 日
tf cannot take symbols as argument , you cannot do the way you are trying. However you can create your transfer function with all symbols.
s= sym(s)
k = sym(k)
H= (k*s+k)/(s^2+s+1)
Or you could assign some dummy value to k and then change it when your program needs.

カテゴリ

Help Center および File ExchangeAssumptions についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by