Main Content

generateTimeseries

Generate time-domain data for input signal

Syntax

ts = generateTimeseries(input)

Description

ts = generateTimeseries(input) creates a MATLAB® timeseries object ts from the input signal input. input can be a sinestream, chirp, or random signal. For chirp and random signals, that time vector of ts has equally spaced time values, ranging from 0 to Ts(NumSamples-1).

Examples

Create timeseries object for chirp signal:

input = frest.Chirp('Amplitude',1e-3,'FreqRange',...
                    [10 500],'NumSamples',20000);
ts = generateTimeseries(input)

Version History

Introduced in R2009b