In simulink (matlab v65) , Can we create a function like this?.I did try but i can't

1 回表示 (過去 30 日間)
super bad
super bad 2017 年 10 月 7 日
回答済み: Walter Roberson 2017 年 10 月 7 日
s^2 + 2 s + 3
-------------
s +2

回答 (1 件)

Walter Roberson
Walter Roberson 2017 年 10 月 7 日
"The order of the denominator must be greater than or equal to the order of the numerator."
In 6.5, the MATLAB function tf() did not have that limitation; see https://www.mathworks.com/help/releases/R13sp2/toolbox/control/ref/tf.html?s_tid=srchtitle . Depending on your use, you might be able to construct an S function; see https://www.mathworks.com/help/releases/R13sp2/toolbox/simulink/slref/slref.html.
Note: in 6.5 it appears that Embedded MATLAB function blocks did not yet exist, except possibly in the context of Code Composer Studio blocks.

カテゴリ

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

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by