Create Plot
Interactively create linear analysis response plots in the Live Editor
Open the Create Plot
To add the Create Plot task to a live script in the MATLAB Live Editor:
On the Live Editor tab, click Task and select the Create Plot icon
.
In a code block in the live script, type a relevant keyword, such as such as
bode
,step
,pzplot
, orimpulse
. Select Create Plot from the suggested command completions. When you add the task using this method, then MATLAB automatically selects the corresponding chart type in the Select visualization section of the task.
Examples
Parameters
Dynamic System
— Model to create the linear analysis response plot
dynamic system model | model array
Choose the dynamic system model or model array to create the linear analysis response plot. Dynamic systems that you can use include:
Continuous-time or discrete-time numeric LTI models, such as
tf
,zpk
, orss
models.Generalized or uncertain LTI models such as
genss
oruss
(Robust Control Toolbox) models. (Using uncertain models requires Robust Control Toolbox™ software.)For tunable control design blocks, the task evaluates the model at its current value to plot the response data.
For uncertain control design blocks, the task plots the nominal value and random samples of the model.
Frequency-response data models such as
frd
models to plot the Bode, sigma, Nyquist or Nichols response. For such models, the task plots the response at frequencies defined in the model.Identified LTI models, such as
idtf
(System Identification Toolbox),idss
(System Identification Toolbox), oridproc
(System Identification Toolbox) models. (Using identified models requires System Identification Toolbox™ software.)
Note
You can only use a single model to plot Hankel singular values. For all other response plots, the task plots the responses of all models in the array on the same axes when you have an array of dynamic system models.
Plot Options
— Plot options set for customization
BodeOptions
object | SigmaOptions
object | NicholsOptions
object | NyquistOptions
object | TimeOptions
object | PZOptions
object | HSVOptions
object
Create and choose the correct options set based on the plot type as follows:
Plot Type | Options Object | Creation Function |
bodeplot | BodeOptions object | bodeoptions |
sigmaplot | SigmaOptions object | sigmaoptions |
nyquistplot | NyquistOptions object | nyquistoptions |
nicholsplot | NicholsOptions object | nicholsoptions |
stepplot | TimeOptions object | timeoptions |
impulseplot | TimeOptions object | timeoptions |
rlocusplot | PZOptions object | pzoptions |
pzplot | PZOptions object | pzoptions |
iopzplot | PZOptions object | pzoptions |
hsvplot | HSVOptions object | hsvoptions |
Version History
Introduced in R2022b
See Also
Functions
bodeplot
|stepplot
|rlocusplot
|impulseplot
|nicholsplot
|nyquistplot
|pzplot
|hsvplot
|iopzplot
|sigmaplot
|bodeoptions
|nicholsoptions
|hsvoptions
|nyquistoptions
|pzoptions
|sigmaoptions
|timeoptions