Main Content

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 Arguments

    Specify optional pairs of arguments as Name1=Value1,...,NameN=ValueN, where Name is the argument name and Value is the corresponding value. Name-value arguments must appear after other arguments, but the order of the pairs does not matter.

    Before R2021a, use commas to separate each name and value, and enclose Name in quotes.

    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.

    Version History

    Introduced in R2012a

    See Also