frest.Random
Random input signal
Description
Use afrest.Random
object to represent a random input signal for frequency response estimation. The random signal contains uniformly distributed random numbers in the interval[0 Amplitude]
or[Amplitude 0]
for positive and negative amplitudes, respectively.
Random signals are useful because they can excite the system uniformly at all frequencies up to the Nyquist frequency.
You can use a random input signal for estimation at the command line, in theModel Linearizer, or with theFrequency Response Estimatorblock. The estimation algorithm injects the signal at the input point you specify for estimation, and measures the response at the output point.
当你使用一个随机输入信号al for estimation, the frequencies returned in the estimatedfrd
model depend on the length and sampling time of the signal. They are the frequencies obtained in the fast Fourier transform of the input signal. For more information, see the Algorithm section offrestimate
.
To view a plot of your input signal, typeplot(input)
. To create atimeseries
object for your input signal, use thegenerateTimeseries
command.
Creation
Description
creates a random signal with properties based on the dynamics of the linear systeminput
= frest.Random(sys
)sys
. For instance, if you have an exact linearization of your system, you can use it to initialize the parameters.
creates random signal withpropertiesspecified using one or more name-value pairs. Enclose each property name in quotes.input
= frest.Random(Name,Value
)
Input Arguments
Properties
Object Functions
frestimate |
Frequency response estimation of金宝appmodels |
generateTimeseries |
Generate time-domain data for input signal |
frest.simCompare |
Plot time-domain simulation of nonlinear and linear models |
frest.simView |
Plot frequency response model in time- and frequency-domain |
getSimulationTime |
Final time of simulation for frequency response estimation |
Examples
Alternative Functionality
Model Linearizer
In theModel Linearizer, to use a random input signal for estimation, on theEstimationtab, selectInput Signal>Random.