Mathematica 9 is now available
Services & Resources / Wolfram Forums
-----
 /
MathGroup Archive
2004
*January
*February
*March
*April
*May
*June
*July
*August
*September
*October
*November
*December
*Archive Index
*Ask about this page
*Print this page
*Give us feedback
*Sign up for the Wolfram Insider

MathGroup Archive 2004

[Date Index] [Thread Index] [Author Index]

Search the Archive

RE: time series

  • To: mathgroup at smc.vnet.net
  • Subject: [mg46380] RE: [mg46362] time series
  • From: "David Park" <djmp at earthlink.net>
  • Date: Mon, 16 Feb 2004 23:42:08 -0500 (EST)
  • Sender: owner-wri-mathgroup at wolfram.com

Paolo,

alist = Array[a, 12]

xlist = Array[x, 4]

Evaluate[xlist] = Partition[alist, 3]

It is necessary to use Evaluate on the lhs above, otherwise Mathematica
resets xlist and not the parts of xlist.

Then you can work with the individual pieces.

x[2]
{a[4], a[5], a[6]}

David Park
djmp at earthlink.net
http://home.earthlink.net/~djmp/

From: paolo tarpanelli [mailto:tarpanelli at libero.it]
To: mathgroup at smc.vnet.net


Given a time series
x={a1,a2,a3,a4,a5,a6,...,an}

how can i divide it in different segments x1, x2,..., xn

x1={a1,a2,a3}
x2={a4,a5,a6}
...
xn={an-2,an-1,an}

thanks

Paolo



  • Prev by Date: Re: time series
  • Next by Date: RE: matrix operations
  • Previous by thread: Re: time series
  • Next by thread: Re: time series