| Products & Services | Solutions | Academia | Support | User Community | Company |
| Download Product Updates | | | Get Pricing | | | Trial Software |
| Documentation → Simulink Control Design |
| Contents | Index |
| Learn more about Simulink Control Design |
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 that matches 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 sinstream signal at different frequencies, amplitudes, and ramp-up periods:
% Create the input signal
input = frest.Sinestream('Frequency',[1 2.5 5],...
'Amplitude',[1 2 1.5],...
'NumPeriods',[4 6 12],...
'RampPeriods',[0 2 6]);
% Plot the input 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
![]() | frest.simView | frestimate | ![]() |

Learn more about Simulink through this collection of videos, articles, technical literature and the Getting Started with Simulink Guide.
| © 1984-2009- The MathWorks, Inc. - Site Help - Patents - Trademarks - Privacy Policy - Preventing Piracy - RSS |