|
In article <h10srp$9p1$1@fred.mathworks.com>,
"Juliette Salexa" <juliette.physicist@gmail.com> wrote:
> I'm looking for a package that approximates derivatives for NUMERICALLY
> defined functions (not analytic) ..
>
> I have two arrays:
> x=0:0.5:10 , and fun= a vector that defines my function at each of those
> values of x.
>
> Now I want the derivative of fun with respect to x at each value of x.
>
> Does such a package exist ??
>
> I've downloaded DERIVEST by John R. D’Errico, but it seems to be for
> analytic functions
Just use gradient:
x = <some vector>
y = f(x);
dydx = gradient(y,x);
--
Doug Schwarz
dmschwarz&ieee,org
Make obvious changes to get real email address.
|