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!