MATLAB: How to display text at a desired location on the mask of a subsystem in Simulink
simulink
I tried the following command in the example area of the Icon and Ports tab of the Mask Editor:
text(5,10,'Reena')
Best Answer
The text command example assumes the Icon Units property of the mask display set to Pixels. Change the Icon Units property in the Icon and Pots tab of the Mask Editor to Pixels. This will make the text display at a desired location.
You can create an InitFcnBlock Callback Function on your subsystem so that the corresponding MATLAB-file is always run when the subsystem is executed. If you want to run the MATLAB code only when the subsystem is opened, you can use the OpenFcn callback.
Best Answer