Sinestream Input with Specified Number of Samples
When your sinestream signal covers a wide range of frequencies, it can be inefficient to
use the same sample time across all frequencies. For that reason, frest.Sinestream by
default uses a fixed number of samples at each frequency. You can specify that number
with a scalar value, or use a vector to provide a different number of samples at each
frequency. (To create a sinestream signal with a fixed sample time across the entire
signal, use frest.createFixedTsSinestream. This option is useful when the input
linearization point for estimation is on a discrete-time signal.)
Create a sinusoidal input signal with the following characteristics:
- 50 frequencies spaced logarithmically between 10 Hz and 1000 Hz
- Amplitude of 1e-3 at all frequencies
- Sampled with a frequency 10 times the frequency of the signal (meaning ten samples
per period)
input = frest.Sinestream('Amplitude',1e-3,...
'Frequency',logspace(1,3,50),...
'SamplesPerPeriod',10,...
'FreqUnits','Hz');
Sinestream Signal Based on Linearized Dynamics
Create a sinestream input signal based on the dynamics of a linear system. This approach
is useful when you are using frequency response estimation to validate the linearization of
your model.
Open a Simulink model.
model = 'watertank';
open_system(model)
15 Alphabetical List