How to get function block parameter from model?

1 次查看(过去 30 天)
I have a simulink model with several blocks within it. I want to find out function block parameters. This i can achieve by model explorer window but i need to do this using command. I have block name with me and need to find out block parameters through command.
As I am new to Matlab, please let me know is there any way to achieve this. Thanks.

采纳的回答

Fangjun Jiang
Fangjun Jiang 2011-10-31
Drag a Fcn block to an empty new Simulink model.
>> get_param('untitled/Fcn','Expression')
ans =
sin(u(1)*exp(2.3*(-u(2))))
>>

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Modeling 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by