| Contents | Index |
Signal containing series of sine waves
input = frest.Sinestream(sys)
input = frest.Sinestream('OptionName',OptionValue)
input = frest.Sinestream(sys) creates a signal with a series of sinusoids based on the dynamics of a linear system sys.
input = frest.Sinestream('OptionName',OptionValue) creates a signal with a series of sinusoids, where each sinusoid frequency lasts for a specified number of periods, using the options specified by comma-separated name/value pairs.
To view a plot of your input signal, type plot(input). To obtain a timeseries for your input signal, use the generateTimeseries command.
sys |
Linear system for creating a sinestream 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 sinestream signal automatically sets these options based on the linear system:
Other sinestream options have default values. | ||||||||||||||||||||
'OptionName',OptionValue |
Signal characteristics, specified as comma-separated pairs of option name string and the option value.
|
Create a sinestream signal having several different frequencies. For each frequency, specify an amplitude, a number of periods at maximum amplitude, a ramp-up period, and a number of settling periods.
Create sinestream signal.
input = frest.Sinestream('Frequency',[1 2.5 5],...
'Amplitude',[1 2 1.5],...
'NumPeriods',[4 6 12],...
'RampPeriods',[0 2 6],...
'SettlingPeriods',[1 3 7]);
(Optional) Plot the sinestream signal.
plot(input)

Create a sinusoidal input signal with the following characteristics:
50 frequencies spaced logarithmically between 10 Hz and 1000 Hz
All frequencies have amplitude of 1e-3
Sampled with a frequency 10 times the frequency of the signal (meaning ten samples per period)
% Create the input signal
input = frest.Sinestream('Amplitude',1e-3,'Frequency',logspace(1,3,50),...
'SamplesPerPeriod',10,'FreqUnits','Hz');
frest.Chirp | frest.createFixedTsSinestream | frest.Random | frestimate | generateTimeseries | getSimulationTime

Learn more about resources for designing, testing, and implementing control systems.
Get free kit| © 1984-2012- The MathWorks, Inc. - Site Help - Patents - Trademarks - Privacy Policy - Preventing Piracy - RSS |