Given an image of 5x5 by I(i, j) = |4-i-j| when i,j = 0,1,2,3,4.
and the following Prewitt operator :
{ {-1, 0, 1}, {-1,
There are multiple ways to do this:
imgradient
imfilter
conv2