Plotting the given Trigonometric functions
Mostrar comentarios más antiguos
Can someone help me on plotting the function ysin(2x) = xcos(2y)?
Respuesta aceptada
Más respuestas (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 comentarios
Adrian Oblena
el 27 de Nov. de 2020
KSSV
el 27 de Nov. de 2020
Use pcolor instead of surf. Also have a look on contour.
Categorías
Más información sobre Line Plots en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!

