M-File Help: mplot | View code for mplot |
Plot time-series data
A convenience function for plotting time-series data held in a matrix. Each row is a timestep and the first column is time.
mplot(y, options) plots the time series data y(NxM) in multiple subplots. The first column is assumed to be time, so M-1 plots are produced.
mplot(T, y, options) plots the time series data y(NxM) in multiple subplots. Time is provided explicitly as the first argument so M plots are produced.
mplot(s, options) as above but s is a structure. Each field is assumed to be a time series which is plotted. Time is taken from the field called 't'. Plots are labelled according to the name of the corresponding field.
mplot(w, options) as above but w is a structure created by the Simulink write to workspace block where the save format is set to "Structure with time". Each field in the signals substructure is plotted.
mplot(R, options) as above but R is a Simulink.SimulationOutput object returned by the Simulink sim() function.
'col', C | Select columns to plot, a boolean of length M-1 or a list of column indices in the range 1 to M-1 |
'label', L | Label the axes according to the cell array of strings L |
'date' | Add a datestamp in the top right corner |
© 1990-2014 Peter Corke.