How to plot sin(xy)=sin(x)+sin(y)?
22 次查看(过去 30 天)
显示 更早的评论
It is easy to plot y=sin(x), but how to sin(xy)=sin(x)+sin(y)?
0 个评论
采纳的回答
John D'Errico
2022-2-22
This is called an implicit function. Use fimplicit. Again, easy.
fimplicit(@(x,y) sin(x.*y) - sin(x) - sin(y))
更多回答(1 个)
Carlos Guerrero García
2022-11-22
"contour" command provides another way to plot an implicit function defined by an expression like F(x,y)=0. For the implicit function in this question, the following code can also be used:
[x,y]=meshgrid(-5:0.01:5); % Establising the canvas...
contour(x,y,sin(x.*y)-sin(x)-sin(y),[0 0]) % ...for plotting sin(xy)-sin(x)-sin(y)=0
0 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Annotations 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!