Difference between revisions of "Fdvec.m"

From Spinach Documentation Wiki
Jump to: navigation, search
(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 ...")
(No difference)

Revision as of 17:29, 2 November 2015

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