Plotting the given Trigonometric functions

 Respuesta aceptada

Ameer Hamza
Ameer Hamza el 27 de Nov. de 2020
Editada: Ameer Hamza el 27 de Nov. de 2020
You can use fimplicit()
fun = @(x, y) y.*sin(2*x) - x.*cos(2*y);
fimplicit(fun, [-10 10 -10 10])

Más respuestas (1)

KSSV
KSSV el 27 de Nov. de 2020
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
Adrian Oblena el 27 de Nov. de 2020
Can it be plotted only in 2D? Value of x and y only? Thank you
KSSV
KSSV el 27 de Nov. de 2020
Use pcolor instead of surf. Also have a look on contour.

Iniciar sesión para comentar.

Categorías

Más información sobre Line Plots en Centro de ayuda y File Exchange.

Etiquetas

Preguntada:

el 27 de Nov. de 2020

Comentada:

el 27 de Nov. de 2020

Community Treasure Hunt

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

Start Hunting!

Translated by