MATLAB: Can we modify Simulink.Signal properties

modify simulink signalobject signalsimulink.signal

Can we add/remove a property in Simulink.Signal?
Example: By default it contains below fields
'CoderInfo'
'Description'
'DataType'
'Min'
'Max'
'DocUnits'
'Dimensions'
'DimensionsMode'
'Complexity'
'SampleTime'
'SamplingMode'
'InitialValue'
'LoggingInfo'
I want to add one more field/property "IsRequiredForAutomation" and its value will be true/false
Can I do that?

Best Answer

You can create your own class that inherits from Simulink.Signal and adds any additional properties/methods you might need.
The following documentation example shows how you can do this.
- Sebastian