フィルターのクリア

Plotting the given Trigonometric functions

7 ビュー (過去 30 日間)
Adrian Oblena
Adrian Oblena 2020 年 11 月 27 日
コメント済み: KSSV 2020 年 11 月 27 日
Can someone help me on plotting the function ysin(2x) = xcos(2y)?

採用された回答

Ameer Hamza
Ameer Hamza 2020 年 11 月 27 日
編集済み: Ameer Hamza 2020 年 11 月 27 日
You can use fimplicit()
fun = @(x, y) y.*sin(2*x) - x.*cos(2*y);
fimplicit(fun, [-10 10 -10 10])

その他の回答 (1 件)

KSSV
KSSV 2020 年 11 月 27 日
x = linspace(-pi,+pi);
y = x ;
[X,Y] = meshgrid(x,y) ;
Z = Y.*sin(2*X)-X.*cos(2*Y) ;
surf(X,Y,Z)
colorbar
  2 件のコメント
Adrian Oblena
Adrian Oblena 2020 年 11 月 27 日
Can it be plotted only in 2D? Value of x and y only? Thank you
KSSV
KSSV 2020 年 11 月 27 日
Use pcolor instead of surf. Also have a look on contour.

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

カテゴリ

Help Center および File ExchangeSurface and Mesh Plots についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by