Need help creating simple plot (3d plot?)
1 visualización (últimos 30 días)
Mostrar comentarios más antiguos
Ulrik
el 20 de Oct. de 2014
Comentada: Ulrik
el 24 de Oct. de 2014
"Draw the graph for the function s(x, y)=sin(pix)sin(piy). Let x=y=linspace(0, 4, n). Vary number of points, n, to see how this changes the surface."
I'm a newbie and I have no idea how to go about this. Any help would be greatly appreciated
0 comentarios
Respuesta aceptada
Mischa Kim
el 20 de Oct. de 2014
Ulrik, one option would be a surface plot:
n = 100;
x = linspace(0,4,n);
y = linspace(0,4,n);
[X,Y] = meshgrid(x,y); % create a x-y grid of data points
Z = sin(pi*X).*sin(pi*Y);
surf(X,Y,Z)
Más respuestas (0)
Ver también
Categorías
Más información sobre Surface and Mesh 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!