Plotting the given Trigonometric functions
Mostra commenti meno recenti
Can someone help me on plotting the function ysin(2x) = xcos(2y)?
Risposta accettata
Più risposte (1)
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 Commenti
Adrian Oblena
il 27 Nov 2020
KSSV
il 27 Nov 2020
Use pcolor instead of surf. Also have a look on contour.
Categorie
Scopri di più su Line Plots in Centro assistenza e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!

