Fdvec.m

From Spinach Documentation Wiki
Revision as of 17:29, 2 November 2015 by Admin (talk | contribs) (Created page with "Performs arbitrary-order finite-difference differentiation of a user-supplied row or column vector. Uses central finite-difference stencils inthe middle and sided stencils of ...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Performs arbitrary-order finite-difference differentiation of a user-supplied row or column vector. Uses central finite-difference stencils inthe middle and sided stencils of the same order of accuracy on the sides. Syntax:

                    dx=fdvec(x,npoints,order)

Parameters:

   x       - column or row vector to be differentiated
   npoints - number of points in the finite difference
             stencil
   order   - order of the derivative required