Simulink Control Design™ - MathWorks

(Tuis.) #1
Option Name Option Value
'SimulationOrder' The order in which frestimate injects the individual
frequencies of the input signal into your Simulink model
during simulation.


  • 'Sequential' (default) — frestimate injects one
    frequency after the next into your model in a single
    Simulink simulation using variable sample time. To use
    this option, your Simulink model must use a variable-step
    solver.

  • 'OneAtATime' — frestimate injects each frequency
    during a separate Simulink simulation of your model.
    Before each simulation, frestimate initializes your
    Simulink model to the operating point specified for
    estimation. If you have Parallel Computing Toolbox
    installed, you can run each simulation in parallel to speed
    up estimation using parallel computing. For more
    information, see “Speeding Up Estimation Using Parallel
    Computing” on page 5-83.


Examples


Create Sinestream Signal by Specifying Frequencies

Create a sinestream input signal for estimation by specifying the frequencies for the
signal. Also, specify the amplitude, the number of ramp-up periods, the number of settling
periods, and the total number of periods after the ramp-up.

To specify the frequencies, use a vector of frequencies.

freqs = linspace(1,4,4);

To specify the other parameters, use a scalar to use the same parameter value for every
frequency. To use different values for each frequency, use a vector of the same length as
freqs. For this example, use increasing amplitudes at each frequency, but keep the
number of ramp-up periods, number of settling periods, and the number of periods after
ramp-up constant.

15 Alphabetical List

Free download pdf