Simulink Control Design™ - MathWorks

(Tuis.) #1

frest.Random


Package: frest

Random input signal for simulation

Syntax


input = frest.Random('OptionName',OptionValue)
input = frest.Random(sys)

Description


input = frest.Random('OptionName',OptionValue) creates the random input
signal using the options specified by comma-separated name/value pairs.

input = frest.Random(sys) creates a Random input signal based on the dynamics of
a linear system sys.

The generated signal comprises uniformly distributed random numbers in the interval [0
amp] if amp is positive and [amp 0] if amp is negative, where amp is the value of the
Amplitude parameter. To view a plot of your input signal, type plot(input). To obtain
a time series for your input signal, use the generateTimeseries command.

Input Arguments


sys

Linear system for creating a random signal based on the dynamic characteristics of this
system. You can specify the linear system based on known dynamics using tf, zpk, or ss.
You can also obtain the linear system by linearizing a nonlinear system.

The resulting random signal automatically sets these options based on the linear system:


  • Ts is set such that the Nyquist frequency of the signal is five times the upper end of
    the frequency range to avoid aliasing issues.


15 Alphabetical List

Free download pdf