How to plot sin(xy)=sin(x)+sin(y)?
12 ビュー (過去 30 日間)
古いコメントを表示
Simple Life
2022 年 2 月 22 日
回答済み: Carlos Guerrero García
2022 年 11 月 22 日
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!