Products & Services Solutions Academia Support User Community Company

Learn more about Control System Toolbox   

Customizing Response Plots Using the Response Plots Property Editor

Opening the Property Editor

After you create a response plot, there are two ways to open the Property Editor:

Before looking at the Property Editor, open a step response plot using these commands.

load ltiexamples
step(sys_dc)

This creates a step plot. Select Properties from the right-click menu. Note that when you open the Property Editor, a set of black squares appear around the step response, as this figure shows:

SISO System Step Response

Overview of Response Plots Property Editor

This figure shows the Property Editor dialog box for a step response.

The Property Editor for Step Response

In general, you can change the following properties of response plots. Note that only the Labels and Limits panes are available when using the Property Editor with Simulink® Design Optimization™ software.

As you make changes in the Property Editor, they display immediately in the response plot. Conversely, if you make changes in a plot using right-click menus, the Property Editor for that plot automatically updates. The Property Editor and its associated plot are dynamically linked.

Labels Pane

To specify new text for plot titles and axis labels, type the new string in the field next to the label you want to change. Note that the label changes immediately as you type, so you can see how the new text looks as you are typing.

Limits Pane

Default values for the axes limits make sure that the maximum and minimum x and y values are displayed. If you want to override the default settings, change the values in the Limits fields. The Auto-Scale box automatically clears if you click a different field. The new limits appear immediately in the response plot.

To reestablish the default values, select the Auto-Scale box again.

Units Pane

You can use the Units pane to change units in your response plot. The contents of this pane depend on the response plot associated with the editor.

Note that for step and impulse responses, there are no alternate units available (only time and amplitude are possible in the toolbox). This table lists the options available for the other response objects. Use the menus to toggle between units.

Optional Unit Conversions for Response Plots

Response Plot

Unit Conversions

Bode and
Bode Magnitude

Frequency in rad/s or Hertz (Hz) using logarithmic or linear scale
Magnitude in decibels (dB) or the absolute value
Phase in degrees or radians

Impulse

None

Nichols Chart

Frequency in rad/s or Hertz
Phase in degrees or radians

Nyquist Diagram

Frequency in rad/s or Hertz

Pole/Zero Map

Frequency in rad/s or Hertz

Singular Values

Frequency in rad/s or Hertz using logarithmic or linear scale
Magnitude in decibels or the absolute value using logarithmic or linear scale

Step

None

Style Pane

Use the Style pane to toggle grid visibility and set font preferences and axes foreground colors for response plots.

You have the following choices:

Options Pane

The Options pane allows you to customize response characteristics for plots. Each response plot has its own set of characteristics and optional settings; the table below lists them. Use the check boxes to activate the feature and the fields to specify rise or settling time percentages.

Response Characteristic Options for Response Plots

Plot

Customizable Feature

Bode Diagram and Bode Magnitude

Select lower magnitude limit
Adjust phase offsets to keep phase close to a particular value, within a range of ±180º, at a given frequency.
Unwrap phase (default is unwrapped)

Impulse

Show settling time within xx% (specify the percentage)

Nichols Chart

Select lower magnitude limit
Adjust phase offsets to keep phase close to a particular value, within a range of ±180º, at a given frequency.
Unwrap phase (default is unwrapped)

Nyquist Diagram

None

Pole/Zero Map

None

Sigma

None

Step

Show settling time within xx% (specify the percentage)
Show rise time from xx to yy% (specify the percentages)

Editing Subplots Using the Property Editor

If you create more than one plot in a single figure window, you can edit each plot individually. For example, the following code creates a figure with two plots, a step and an impulse response with two randomly selected systems:

subplot(2,1,1)
step(rss(2,1))
subplot(2,1,2)
impulse(rss(1,1))

After the figure window appears, double-click in the upper (step response) plot to activate the Property Editor. You will see a set of small black squares appear around the step response, indicating that it is the active plot for the editor. To switch to the lower (impulse response) plot, just click once in the impulse response plot region. The set of black squares switches to the impulse response, and the Property Editor updates as well.

  


Recommended Products

Includes the most popular MATLAB recorded presentations with Q&A sessions led by MATLAB experts.

 © 1984-2009- The MathWorks, Inc.    -   Site Help   -   Patents   -   Trademarks   -   Privacy Policy   -   Preventing Piracy   -   RSS