Graphics Programs Reference
In-Depth Information
dn = diff(y,n)
returns the
n
th differences; e.g.,
d2(i) = d(i+1) - d(i)
,
d3(i) = d2(i+1) - d2(i)
, etc. Here
length(dn) = length(y) - n
.
d = gradient(y,h)
returns the finite difference approximation of
dy
/
dx
ateach
point, where
h
is the spacing between the points.
d2 = del2(y,h)
returns the finite difference approximation of
d
2
y
dx
2
/
/
4 ateach
point, where
h
is the spacing between the points.
Search WWH ::
Custom Search