problem with symbolic differentiation
2 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
I have a problem with an implementation of a problem. Suppose I have a function and then apply symbolic differentiation
syms x;
syms y;
f= @(x,y) (x^2+x*y);
f_x= matlabFunction(diff(f,x)); %%turns a sumbolic expression into a function of 2 variable
f_y= matlabFunction(diff(f,y)); turns a symbolic expression into a function of 1 variable
How can I get a function of 2 variables in each case . maybe they are different ways of converting a symbolic expression into a function
Sincerely, Maria
0 Kommentare
Antworten (1)
Siehe auch
Kategorien
Mehr zu Symbolic Math Toolbox finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!