To assign and validate signal attributes in a model, use the Simulink.Signal class to define a signal object in the MATLAB workspace. This will allow you to define your signal with specific attributes. You can also use this signal object to initialize a signal in your model. To do this, follow these steps:
1) Define a Simulink.Signal object in the workspace:
mySig = Simulink.Signal
mySig.RTWInfo.StorageClass = 'ExportedGlobal'
mySig.InitialValue = '10'
2) In your model, select a signal to validate against MySig object. Right click on a signal, choose signal properties and name the signal as mySig. Check the 'Signal name must resolve to Simulink.Signal object' option.
To learn more about Simulink.Signal objects, please refer to:
Best Answer