Documentation

This is machine translation

Translated by Microsoft
Mouseover text to see original. Click the button below to return to the English verison of the page.

Note: This page has been translated by MathWorks. Please click here
To view all translated materals including this page, select Japan from the country navigator on the bottom of this page.

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 ωs=2πts 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 w=2πNts for integer N such that the sample rate ωs=2πts 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 w=2πNts 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});

Introduced in R2009b

Was this topic helpful?