Plotting functions anf computing gradient
이전 댓글 표시
i am currently trying to plot a function and the compute the graident of f using the jacobian function
Plot the function f (x, y) = x sin(xy) − y sin(5y).
Compute the gradient of f in using the jacobian function
my current code is shown below yet im getting erors
f = @(x,y) x*sin(x,y) - y*sin(5*y);
syms x y
jacobian([x*sin(x,y - y*sin(5*y))])
gradient(x*sin(x,y - y*sin(5*y)))
채택된 답변
추가 답변 (0개)
카테고리
도움말 센터 및 File Exchange에서 Conversion Between Symbolic and Numeric에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!