MATLAB: Subsystem parameter and MATLAB Function

matlab functionparameterssimulinksubsystem

Hi I have created a substystem in SIMULINK including a MATLAB-Function-Block. I would like to use the mask parameters in this MATLAB-Function. Is it possible and how? Thanks in advanced.

Best Answer

Yes, it is possible.
You can go to the Model Explorer (Ctrl+H on Windows), select the MATLAB Function block, and add a new Parameter data with the same name as the mask parameter. You may have to turn on the masked block display to see your block.
Maybe this screenshot helps.
- Sebastian