a problem about symbolic function diff

Réponses (2)

Star Strider
Star Strider le 16 Juin 2014
You do not get df/dx once you have defined x as x(t). You get the Chain Rule:
dfdx = diff(f)
produces:
dfdx(t) =
D(x)(t)*y(t) + x(t)*D(y)(t)
The command diff(f,x) or diff(f, x(t)) throws an error.
Lucas Carvalho
Lucas Carvalho le 13 Mai 2017
Modifié(e) : Lucas Carvalho le 13 Mai 2017

0 votes

In your case, the independent variable is only t, while x and y are dependent of t. To derive the f function partially in terms of x or y, you will need the fulldiff function:
https://www.mathworks.com/matlabcentral/fileexchange/7174-fulldiff-m

Catégories

En savoir plus sur Symbolic Math Toolbox dans Centre d'aide et File Exchange

Tags

Question posée :

le 16 Juin 2014

Community Treasure Hunt

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

Start Hunting!

Translated by