Scilab Function
Last update : 31/10/2005

grad - gradient of function F

Calling Sequence

[fx,fy] = grad(F,dx,dy)

Parameters

Description

grad works with 2-dimensional arrays. higher dimensions are not supported.

Examples

x=cumsum(rand(1,30));
y=cumsum(rand(1,40));
[X,Y]=meshgrid(x,y);
Z=sin(0.1 .*X - 0.2 .*Y);
[fx,fy]=grad(Z,x,y);

See Also

meshgrid ,  

Authors

Dr. Andreas Geissler geisslea@web.de