In matlab i have found following answers. let X =
1 2 3 3 4 5 3 2 1 z=gradient(X)z = 1 1 1 1 1 1 -1 -1 -1[z,c]=gradient(X)
z =
1 1 1 1 1 1 -1 -1 -1
c =
2 2 2 1 0 -1 0 -2 -4But how z and c is calculated,what z and c indicates.
Best Answer