Peterp

Calculate diff. of a matrix [X(2)-X(1)  X(3)-X(2) ... X(n)-X(n-1)]

Discussion created by Peterp on Jun 10, 2009
Latest reply on Jun 12, 2009 by ryta1203

Hi,

i've an NxM matrix and i want i want to calculate the difference of that matrix e.g.

Matrix :  1 2 3

              4 5 6

              7 8 9

ResultMatrix: 2-1 3-2

                     5-4 6-5

                     8-7 9-8

 

What is the best way to do this?

                   

                      

 

Outcomes