MultiPlot Graph

Plot multiple signals

Description

The MultiPlot Graph block displays signals in a MATLAB® figure.

If the input signal is a vector, then each component of the vector is plotted in a separate axes. Lines are added to the axes in subsequent simulations. The most recent data is plotted in red. Older plots cycle through seven different colors. The block acts as a "hold-on, subplotter."

There are two buttons in the toolbar menu. The eraser button clears the data from all axes. The export button saves all the visible plot data to the MATLAB workspace in a variable named by the dialog box entry Variable for Export to Workspace. The format is a struct array, following the behavior of a To Workspace block, using the "Structure, With Time" save format.

The MultiPlot Graph block can be used in conjunction with the Uncertain State Space block to visualize Monte Carlo and worst-case simulation time responses.

Dialog Box

Parameters

t-min, t-max

The parameter entries t-min and t-max are the minimum and maximum x-axis limits. t-min and t-max may be vectors corresponding to each subplot.

y-min, y-max

The parameter entries y-min and y-max are the minimum and maximum y-axis limits and similarly may be vector quantities.

Sample time

Sample time corresponds to the sample time at which to collect points.

Title

Specifies the title of the multiplot figure.

Variable for Export to Workspace

Variable name of the MATLAB object to contain all the visible plot data exported to the MATLAB workspace. The format is a struct array, following the behavior of a To Workspace block, using the "Structure, With Time" save format.

Was this topic helpful?