Effacer les filtres
Effacer les filtres

How to create a function with a large number of variables, and get its gradient and Jacobian matrix,like following

1 vue (au cours des 30 derniers jours)

Réponses (1)

Alan Weiss
Alan Weiss le 14 Mai 2017
If you have a Symbolic Math Toolbox license, you can work along the lines of this example. Or of this example, which uses files rather than function handles.
Alan Weiss
MATLAB mathematical toolbox documentation
  1 commentaire
Xiaolei Du
Xiaolei Du le 15 Mai 2017
Thanks for your answers! When n is small,it is a not bad solution,however, when n is large,it will spend so much time, I need to get iteration solution, it may not be a good ideal, and function matlabFunction can convert it to a function handles, but it runs so much time. Best wish to you!

Connectez-vous pour commenter.

Catégories

En savoir plus sur 求解器输出和迭代输出 dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!