| 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 |
Random input signal for simulation
input = frest.Random('OptionName',OptionValue)
input = frest.Random(sys)
input = frest.Random('OptionName',OptionValue) creates the Random input signal using the options specified by comma-separated name/value pairs.
input = frest.Random(sys) creates a Random input signal based on the dynamics of a linear system sys.
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 random 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 random signal automatically sets these options based on the linear system:
Other random options have default values. | ||||||||||
'OptionName',OptionValue |
Signal characteristics, specified as comma-separated pairs of option name string and the option value.
|
Create a Random input signal with 1000 samples taken at 100 Hz and amplitude of 0.02:
input = frest.Random('Amplitude',0.02,'Ts',1/100,'NumSamples',1000);Create a Random input signal using multiplicative lagged Fibonacci generator random stream:
% Specify the random number stream
stream = RandStream('mlfg6331_64','Seed',0);
% Create the input signal
input = frest.Random('Stream',stream);frest.Random | frest.Sinestream | frestimate | generateTimeseries
![]() | frest.createStep | frest.simCompare | ![]() |

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 |