matlab stepresp,Plot step response and return plot handle

Description

h = stepplot(sys) plots the step response

of the sys. It also returns

the plot handle h. You can use this handle to customize

the plot with the getoptions and setoptions commands.

Type

help timeoptions

for a list of available plot options.

For multiinput models, independent step commands are applied

to each input channel. The time range and number of points are chosen

automatically.

stepplot(sys,Tfinal) simulates the step

response from t = 0 to the final time t

= Tfinal. Express Tfinal in the system

time units, specified in the TimeUnit property

of sys. For discrete-time systems with unspecified

sample time (Ts = -1), stepplot interprets Tfinal as

the number of sampling intervals to simulate.

stepplot(sys,t) uses the user-supplied

time vector t for simulation. Express t in

the system time units, specified in the TimeUnit property

of sys. For discrete-time models, t should

be of the form Ti:Ts:Tf, where Ts is

the sample time. For continuous-time models, t should

be of the form Ti:dt:Tf, where dt becomes

the sample time of a discrete approximation to the continuous system

(see step). The stepplot command

always applies the step input at t=0, regardless

of Ti.

To plot the step responses of multiple models sys1,sys2,...

on a single plot, use:

stepplot(sys1,sys2,...,sysN)

stepplot(sys1,sys2,...,sysN,Tfinal)

stepplot(sys1,sys2,...,sysN,t)

You can also specify a color, line style, and marker for each

system, as in

stepplot(sys1,'r',sys2,'y--',sys3,'gx')

stepplot(AX,...) plots into the axes with

handle AX.

stepplot(..., plotoptions) customizes the plot appearance using the

options set, plotoptions. Use timeoptions to create the options set.

stepplot(..., dataoptions) specifies options

such as the step amplitude and input offset using the options set, dataoptions.

Use stepDataOptions to

create the options set.

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值