Converting expression to matlab function in acceptable format
Afficher commentaires plus anciens
f1 = 2x^2+3y; f2 =y^2+6x;
g1=matlabFunction(f1); g2 = matlabFunction(f2);
Here g1 =@(x,y) 2x^2+3y
But, I want g1 =@(x) 2*x(1)^2+3*x(2)
How to convert in the required format?
Réponses (1)
Alan Weiss
le 17 Fév 2016
1 vote
1 commentaire
Mithun mondal
le 18 Fév 2016
Modifié(e) : Mithun mondal
le 18 Fév 2016
Catégories
En savoir plus sur Choose a Solver dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!