In simulink (matlab v65) , Can we create a function like this?.I did try but i can't
1 次查看(过去 30 天)
显示 更早的评论
s^2 + 2 s + 3
-------------
s +2
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/167935/image.png)
0 个评论
回答(1 个)
Walter Roberson
2017-10-7
Sorry, no, in MATLAB 6.5 https://www.mathworks.com/help/releases/R13sp2/toolbox/simulink/slref/transferfcn.html?s_tid=srchtitle
"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.
0 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Simulink Functions 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!