Converting expression to matlab function in acceptable format
Ältere Kommentare anzeigen
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?
Antworten (1)
Alan Weiss
am 17 Feb. 2016
1 Stimme
1 Kommentar
Mithun mondal
am 18 Feb. 2016
Bearbeitet: Mithun mondal
am 18 Feb. 2016
Kategorien
Mehr zu Systems of Nonlinear Equations finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!