problem with symbolic differentiation

조회 수: 2 (최근 30일)
Maria Sargsyan
Maria Sargsyan 2015년 11월 21일
답변: Walter Roberson 2015년 11월 21일
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

답변 (1개)

Walter Roberson
Walter Roberson 2015년 11월 21일
matlabFunction(diff(f,y), [x,y])

카테고리

Help CenterFile Exchange에서 Symbolic Math Toolbox에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by