Defining coordinates and points in a 3D plot
14 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
Breanna Elliott
el 2 de Sept. de 2018
Comentada: Walter Roberson
el 29 de Nov. de 2018
How do I define the length of x (0 to 1m) and y (0 to .5m) with a grid of 101 by 51 points? This is a 3D plot
1 comentario
Respuesta aceptada
Walter Roberson
el 2 de Sept. de 2018
xv = linspace(0, 1, 101);
yv = linspace(0, 0.5, 51);
[X, Y] = ndgrid(xv, yv);
Z = sqrt(sin(X)) .* cos(Y-X).^2;
surf(X, Y, Z, 'edgecolor', 'none');
0 comentarios
Más respuestas (0)
Ver también
Categorías
Más información sobre 2-D and 3-D 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!