How to get function block parameter from model?

Illustration
Leonardo - 2020-09-23T09:21:31+00:00
Question: How to get function block parameter from model?

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.

Expert Answer

Profile picture of Prashant Kumar Prashant Kumar answered . 2025-11-20

Drag a Fcn block to an empty new Simulink model.

>> get_param('untitled/Fcn','Expression')
ans =
sin(u(1)*exp(2.3*(-u(2))))
>>


Not satisfied with the answer ?? ASK NOW

Get a Free Consultation or a Sample Assignment Review!