How to combine the using of meshgrid and surface?
8 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
Levi
el 2 de Dic. de 2020
Comentada: Levi
el 2 de Dic. de 2020
The value of the graph are
x = [ 0.02];
y = [ 0.35];
z = [ 1];
I am trying using this one but it wont work
[xx,yy = meshgrid(x,y)
figure;
surf(xx,yy,zz);
0 comentarios
Respuesta aceptada
Walter Roberson
el 2 de Dic. de 2020
x = linspace(0,.1);
y = linspace(.3, .4);
[X, Y] = meshgrid(x, y);
Z = X.^2 - 5.*Y.^3 + sin(5*2*pi*X);
surf(X, Y, Z, 'edgecolor', 'none')
You cannot surf() a single point. If you need to draw one 3d point at a time, use either plot3() with a marker set, or use scatter3() (for lots of points, consider using a pointcloud)
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!