I have developed a Simscape component with a lookup table, with help from the following documentation:
The Simscape component has three parameters:
parameters Param1 = {<values>, 'units'}; Param2 = {<values>, 'units'}; Param3 = {<values>, 'units'}; end
I would like to make parameters 'Param1' and 'Param3' not accessible to the user. So I attempt to move these definitions to the private variables section. However, when I attempt to build the component, I see the following error:
ERROR: Failed to generate '<LibName>' Caused by: Error using ne_buildpackage>@()validate(feval(libHelpers{idx}.Command)) Expression is not of expected variability: parametric.
Is there a way to make some parameters private?
Best Answer