How to do numerical differentiation using Matlab?

Can anyone help me with doing numerical differentiation using matlab for the function on this image:
Where the function F(gamma) is given by eq (11) in the following image:
I have never done something like this on Matlab, so i appreciate it if you can give me an example or try to give me the initial steps for this equation.
differential-equations

Respuestas (1)

Torsten
Torsten el 6 de Mzo. de 2017

0 votos

Use symbolic differentiation:
https://de.mathworks.com/help/symbolic/diff.html
Best wishes
Torsten.

5 comentarios

Deema42
Deema42 el 6 de Mzo. de 2017
does it compute it numerically?
Use "matlabFunction" or "subs" on the result to evaluate the derivatives numerically:
help matlabFunction
help subs
Best wishes
Torsten.
Deema42
Deema42 el 6 de Mzo. de 2017
you mean after i use diff command, i have to use matlabFunction ? can you please provide me with an example or clarify your point? Thank you
syms x
f = x^2;
df = diff(f,x);
hf = matlabFunction(df);
hf(2)
Best wishes
Torsten.
Deema42
Deema42 el 7 de Mzo. de 2017
okay i will try it and let you know, Thank you.

Iniciar sesión para comentar.

Categorías

Más información sobre Creating and Concatenating Matrices en Centro de ayuda y File Exchange.

Preguntada:

el 4 de Mzo. de 2017

Comentada:

el 7 de Mzo. de 2017

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by