| Contents | Index |
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 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 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 | 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 |