This question is closed. Reopen it to edit or answer.

Block Mask Cripples Simulink.Parameter

1 view (last 30 days)
Robert on 12 Jul 2018
Closed: MATLAB Answer Bot on 20 Aug 2021
I defined a block mask receiving a parameter that is required to be a Simulink.Parameter object. All is fine as long as I only use this parameter inside the masked subsystem. Simulation and code generation heed all configuration I set on the Simulink.Parameter object. But now I also need to do some computation using this object within the initialisation of the block (MaskInitialization). To my very surprise I end up with an object where most of the information of the original object is lost, as class simply doesn't contain e.g. min/max Values or coder info. Does anyone have an explanation for that behavior? Is there a known workaround aside from passing a string and searching the workspace hierarchy for a variable of that name?

Answers (0)

Community Treasure Hunt

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

Start Hunting!

Translated by