Sine function in 2D
30 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
Sucheta
el 16 de Dic. de 2022
Comentada: Sucheta
el 19 de Dic. de 2022
I have already used the simple plot command but how can pcolor and contour plot be used to plot sine and cosine function in 2D? Need help!
0 comentarios
Respuesta aceptada
KSSV
el 16 de Dic. de 2022
x = linspace(0,2*pi) ;
y = x ;
[X,Y] = meshgrid(x,y) ;
Z = sin(X) ;
surf(X,Y,Z)
Más respuestas (0)
Ver también
Categorías
Más información sobre Contour Plots en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!