MathGroup Archive 2004

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

Search the Archive

Re: time series

  • To: mathgroup at smc.vnet.net
  • Subject: [mg46395] Re: time series
  • From: bobhanlon at aol.com (Bob Hanlon)
  • Date: Mon, 16 Feb 2004 23:43:10 -0500 (EST)
  • References: <c0qjqi$kc3$1@smc.vnet.net>
  • Sender: owner-wri-mathgroup at wolfram.com

Time series

x=ToExpression[Table["a"<>ToString[k],{k,12}]]

{a1,a2,a3,a4,a5,a6,a7,a8,a9,a10,a11,a12}

Subdivision length

m=3;

Define new variables

Evaluate[ToExpression[Table["x"<>ToString[k],{k,Length[x]/m}]]]=
    Partition[x,m];

Check

x3

{a7,a8,a9}


Bob Hanlon

In article <c0qjqi$kc3$1 at smc.vnet.net>, "paolo tarpanelli"
<tarpanelli at libero.it> wrote:

<< 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}


  • Prev by Date: Re: Can Mathematica Ver 5 Import ESRI *.shp, *.shx and DBase *.dbf files??
  • Next by Date: RE: time series
  • Previous by thread: Re: time series
  • Next by thread: RE: time series