How do I modify line properties in plots created from the Control

Illustration
priya_sinha8 - 2021-08-26T11:53:17+00:00
Question: How do I modify line properties in plots created from the Control

How do I modify line properties in plots created from the Control and Estimation Tools Manager in Simulink Control Design 2.0.1 (R2006b)? In the Control and Estimation Tools Manager, I can create plots such as Bode plots. I want to modify figure properties such as the color of the lines as I would in a regular MATLAB figure.  

Expert Answer

Profile picture of Prashant Kumar Prashant Kumar answered . 2025-11-20

This enhancement has been incorporated in Simulink Control Design 2.4 (R2008b). For previous product releases, in order to modify figure properties for figures generated from the Control and Estimation Tools manager, export the plots to a MATLAB figure. Changes have been made in MATLAB 7.3 (R2006b) such that line objects (from which you can change the color of the line) are placed under HGGROUP objects. Hence, you are not able to directly change the line properties from the MATLAB GUI.
 
To work around this issue, please do the following:
 
1. Open the figure.
2. Click on one part of the line such that you select it. If you selected it correctly, you should see the X and Y coordinate of the datapoint you chose.
3. Execute the following command in the MATLAB Prompt:
get(gco,'type')
If the above command returns 'line', you know you have selected the line object.
 
4. Execute the following command in the MATLAB Prompt:
 
inspect(gco)
The above command will open the Property Inspector for the line object. You can modify the properties of the line from here.


Not satisfied with the answer ?? ASK NOW

Get a Free Consultation or a Sample Assignment Review!