From: Alan on
Hi all,
Anybody could give me a hand?
given A = [a1,a2,a3,a4,a5]
how can i create a matrix of [a2-a1,a3-a2, a4-a3...]/

Thanks
From: ImageAnalyst on
On Jun 5, 12:57 am, "Alan " <zzp.alan.remove.t...(a)gmail.com> wrote:
> Hi all,
> Anybody could give me a hand?
> given A = [a1,a2,a3,a4,a5]
> how can i create a matrix of [a2-a1,a3-a2, a4-a3...]/
>
> Thanks

------------------------------
I think you just did, though I'm not sure why you added the ... and
the /.
B = [a2-a1,a3-a2, a4-a3];
What's wrong with that?
From: Walter Roberson on
Alan wrote:
> Hi all,
> Anybody could give me a hand? given A = [a1,a2,a3,a4,a5]
> how can i create a matrix of [a2-a1,a3-a2, a4-a3...]/

see diff()