Documentation Center

  • Trial Software
  • Product Updates

Contents

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)

See Also

| |

Was this topic helpful?