Quantcast

Documentation Center

  • Trial Software
  • Product Updates

Contents

frest.createFixedTsSinestream

Package: frest

Sinestream input signal with fixed sample time

Syntax

input = frest.createFixedTsSinestream(ts)
input = frest.createFixedTsSinestream(ts,{wmin wmax})
input = frest.createFixedTsSinestream(ts,w)
input = frest.createFixedTsSinestream(ts,sys)
input = frest.createFixedTsSinestream(ts,sys,{wmin wmax})
input = frest.createFixedTsSinestream(ts,sys,w)

Description

input = frest.createFixedTsSinestream(ts) creates sinestream input signal in which each frequency has the same fixed sample time ts in seconds. The signal has 30 frequencies between 1 and ωs, where is the sample rate in radians per second. The software adjusts the SamplesPerPeriod option to ensure that each frequency has the same sample time. Use when your Simulink® model has linearization input I/Os on signals with discrete sample times.

input = frest.createFixedTsSinestream(ts,{wmin wmax}) creates sinestream input signal with up to 30 frequencies logarithmically spaced between wmin and wmax in radians per second.

input = frest.createFixedTsSinestream(ts,w) creates sinestream input signal with frequencies w, specified as a vector of frequency values in radians per second. The values of w must satisfy for integer N such that the sample rate is an integer multiple of each element of w.

input = frest.createFixedTsSinestream(ts,sys) creates sinestream input signal with a fixed sample time ts. The signal's frequencies, settling periods, and number of periods automatically set based on the dynamics of a linear system sys.

input = frest.createFixedTsSinestream(ts,sys,{wmin wmax}) creates sinestream input signal with up to 30 frequencies logarithmically spaced between wmin and wmax in radians per second.

input = frest.createFixedTsSinestream(ts,sys,w) creates sinestream input signal at frequencies w, specified as a vector of frequency values in radians per second. The values of w must satisfy for integer N such that the sample rate ts is an integer multiple of each element of w.

Examples

Create a sinusoidal input signal with the following characteristics:

  • Sample time of 0.02 sec

  • Frequencies of the sinusoidal signal are between 1 rad/s and 10 rad/s

input = frest.createFixedTsSinestream(0.02,{1, 10});

See Also

|

Was this topic helpful?