フィルターのクリア

How to plot sin(xy)=sin(x)+sin(y)?

10 ビュー (過去 30 日間)
Simple Life
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)?

採用された回答

John D'Errico
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 件のコメント
Simple Life
Simple Life 2022 年 2 月 23 日
That's it! Thanks.

サインインしてコメントする。

その他の回答 (1 件)

Carlos Guerrero García
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

カテゴリ

Help Center および File Exchange2-D and 3-D Plots についてさらに検索

タグ

製品


リリース

R2019a

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by