MathGroup Archive 2004

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

Search the Archive

Re: matrix operations

  • To: mathgroup at smc.vnet.net
  • Subject: [mg46425] Re: matrix operations
  • From: Paul Abbott <paul at physics.uwa.edu.au>
  • Date: Tue, 17 Feb 2004 07:05:57 -0500 (EST)
  • Organization: The University of Western Australia
  • References: <c0mohe$65t$1@smc.vnet.net>
  • Sender: owner-wri-mathgroup at wolfram.com

In article <c0mohe$65t$1 at smc.vnet.net>,
 "paolo tarpanelli" <tarpanelli at libero.it> wrote:

> If I have a matrix
> 
> a={x[[1,1]],x[[1,2]],...,x[[1,n]]}
>     {x[[2,1]],x[[2,2]],...,x[[2,n]]}
>             .
>             .
>             .
>     {x[[m,1]],x[[m,2]],...,x[[m,n]]}
> 
> how can I compute the difference between any element and the previous for 
> each column :

ListConvolve is your friend:

   ListConvolve[{{1}, {-1}}, a]

Cheers,
Paul

-- 
Paul Abbott                                   Phone: +61 8 9380 2734
School of Physics, M013                         Fax: +61 8 9380 1014
The University of Western Australia      (CRICOS Provider No 00126G)         
35 Stirling Highway
Crawley WA 6009                      mailto:paul at physics.uwa.edu.au 
AUSTRALIA                            http://physics.uwa.edu.au/~paul


  • Prev by Date: Re: Show Factor
  • Next by Date: Re: Equal, Inequality and TraditionalForm
  • Previous by thread: FW: RE: matrix operations
  • Next by thread: Re: FW: matrix operations