call an equation within the function
이전 댓글 표시
hello,
I am writing a code like,
syms x y;
data=2*x^2+3*x+y;
function f= obj(x,y)
f=@data;
end
but here 'f' is not calling the equation 'data' within the function. what will be the command so that 'f' can call the data in this function?
댓글 수: 2
David Hill
2020년 10월 27일
What are you trying to do? Please explain with an example. Is there a reason you need symbolic variables?
Soumili Sen
2020년 10월 27일
채택된 답변
추가 답변 (0개)
카테고리
도움말 센터 및 File Exchange에서 Symbolic Math Toolbox에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!