From: J T on
Hi guys,

If i have an image with the matrix, (example only)

[ 1 2 3
4 5 6
7 8 9 ]

and i want to find the derivative along the x direction, Ix, how do i do it? It should return just 1 numerical value..

Thanks guys!!
From: J T on
Oh by the way it is to calculate the intensity.. but i dont know how to find Ix and Iy
From: Ulf Graewe on
"J T" <jeff_2585(a)hotmail.com> wrote in message <hqbrro$laa$1(a)fred.mathworks.com>...
> Hi guys,
>
> If i have an image with the matrix, (example only)
>
> [ 1 2 3
> 4 5 6
> 7 8 9 ]
>
> and i want to find the derivative along the x direction, Ix, how do i do it? It should return just 1 numerical value..
>
> Thanks guys!!

try this:

doc gradient