matlab中找不到step函数 200
2个回答
2017-08-09
展开全部
在命令行输入help step即可。
如下所示,可以 看到函数step的用法。
>> help step
STEP Step response of dynamic systems.
STEP(SYS) plots the step response of the dynamic system SYS. For
multi-input models, independent step commands are applied to each
input channel. The time range and number of points are chosen
automatically.
STEP(SYS,TFINAL) simulates the step response from t=0 to the
final time t=TFINAL. For discrete-time models with unspecified
sampling time, TFINAL is interpreted as the number of samples.
STEP(SYS,T) uses the user-supplied time vector T for simulation.
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 will become the sample
time for the discrete approximation to the continuous system. The
step input is always assumed to start at t=0 (regardless of Ti).
STEP(SYS1,SYS2,...,T) plots the step response of several systems
SYS1,SYS2,... on a single plot. The time vector T is optional. You
can also specify a color, line style, and marker for each system, for
example:
step(sys1,'r',sys2,'y--',sys3,'gx').
[Y,T] = STEP(SYS) returns the output response Y and the time vector T
used for simulation. No plot is drawn on the screen. If SYS has NY
outputs and NU inputs, and LT = length(T), Y is an array of size
[LT NY NU] where Y(:,:,j) gives the step response of the j-th input
channel.
[Y,T,X] = STEP(SYS) also returns, for a state-space model SYS, the
state trajectory X, a LT-by-NX-by-NU array if SYS has NX states.
See STEPPLOT for additional graphical options for step response plots.
如下所示,可以 看到函数step的用法。
>> help step
STEP Step response of dynamic systems.
STEP(SYS) plots the step response of the dynamic system SYS. For
multi-input models, independent step commands are applied to each
input channel. The time range and number of points are chosen
automatically.
STEP(SYS,TFINAL) simulates the step response from t=0 to the
final time t=TFINAL. For discrete-time models with unspecified
sampling time, TFINAL is interpreted as the number of samples.
STEP(SYS,T) uses the user-supplied time vector T for simulation.
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 will become the sample
time for the discrete approximation to the continuous system. The
step input is always assumed to start at t=0 (regardless of Ti).
STEP(SYS1,SYS2,...,T) plots the step response of several systems
SYS1,SYS2,... on a single plot. The time vector T is optional. You
can also specify a color, line style, and marker for each system, for
example:
step(sys1,'r',sys2,'y--',sys3,'gx').
[Y,T] = STEP(SYS) returns the output response Y and the time vector T
used for simulation. No plot is drawn on the screen. If SYS has NY
outputs and NU inputs, and LT = length(T), Y is an array of size
[LT NY NU] where Y(:,:,j) gives the step response of the j-th input
channel.
[Y,T,X] = STEP(SYS) also returns, for a state-space model SYS, the
state trajectory X, a LT-by-NX-by-NU array if SYS has NX states.
See STEPPLOT for additional graphical options for step response plots.
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询