How to get function block parameter from model?

L
Leonardo · Sep 23, 2020 · 1.8K views
Question
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 PhD Expert
Answered Aug 23, 2026

Drag a Fcn block to an empty new Simulink model.

>> get_param('untitled/Fcn','Expression')
ans =
sin(u(1)*exp(2.3*(-u(2))))
>>
100% Run Guarantee 3-Hour Fast-Track Delivery

Need a Custom Version or Complete Simulation for This Problem?

Our 500+ PhD engineers build, debug, and optimize working MATLAB scripts and Simulink (.slx) models tailored to your exact assignment rubrics with zero plagiarism.

Tested on MATLAB R2024b / R2026a
Turnitin 0% Plagiarism Report
Free 7-Day Revisions Guarantee
Have a different question? Ask here

Get a Free Consultation or a Sample Assignment Review!