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.

extendts

Extend time series data to given number of timesteps

Syntax

extendts(x,ts,v)

Description

extendts(x,ts,v) takes these values,

x

Neural network time series data

ts

Number of timesteps

v

Value

and returns the time series data either extended or truncated to match the specified number of timesteps. If the value v is specified, then extended series are filled in with that value, otherwise they are extended with random values.

Examples

Here, a 20-timestep series is created and then extended to 25 timesteps with the value zero.

x = nndata(5,4,20);
y = extendts(x,25,0)

Introduced in R2010b

Was this topic helpful?