stepDataOptions

Options for the step command

    Description

    example

    opt = stepDataOptions creates the default options for step.

    example

    opt = stepDataOptions(Name,Value) creates an options set with the options specified by one or more Name,Value pair arguments.

    Examples

    collapse all

    Create a transfer function model.

    sys = tf(1,[1,1]);

    Create an option set for step to specify input offset and step amplitude level.

    opt = stepDataOptions('InputOffset',-1,'StepAmplitude',2);

    Calculate the step response using the specified options.

    [y,t] = step(sys,opt);

    Input Arguments

    collapse all

    Name-Value Pair Arguments

    Specify optional comma-separated pairs of Name,Value arguments. Name is the argument name and Value is the corresponding value. Name must appear inside quotes. You can specify several name and value pair arguments in any order as Name1,Value1,...,NameN,ValueN.

    Example: ...,'InputOffset',2

    Input signal offset level, specified as the comma-separated pair consisting of 'InputOffset' and a scalar, for all time t < 0, as shown in the following figure.

    Change of input signal offset level, specified as the comma-separated pair consisting of 'StepAmplitude' and a scalar, which occurs at time t = 0, as shown in the previous figure.

    Output Arguments

    collapse all

    Options for the step command, returned as a step options set.

    See Also

    Introduced in R2012a