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.

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)

Introduced in R2009b

Was this topic helpful?