Differentiation
8 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
Richard
le 17 Jan 2012
Commenté : Walter Roberson
le 16 Fév 2019
Is it possible to construct a code that for example we type in x^2 and then the program finds (d/dx)x^2=0 and gives x=0?
I have tried using syms x; diff(x^2) which gives 2*x but I don't know how to make it solve the equation. Perhaps I have to define a function handle? But f=@(x) diff(x^2) doesn't work.
Please help.
0 commentaires
Réponse acceptée
Plus de réponses (2)
jeevitha kandasamy
le 14 Fév 2019
i need matlab c code for integrator ?
1 commentaire
Walter Roberson
le 16 Fév 2019
Unfortunately, code generation is not supported for integral(). However, code generation is supported for the older quadgk(), so you can use MATLAB Coder with that.
Voir également
Produits
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!