Displaying surface in XY plane
61 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
Karina
el 3 de Oct. de 2011
Respondida: Jose Sosa Lopez
el 8 de Sept. de 2020
Dear all! I could not find answer of this question. How to display surface in XY plane with the code? Here is my code:
Z1=reshape(u1,J,I);
[X,Y]=meshgrid(t,x);
surf(X,Y,Z1,Z1);
colorbar;
shading interp;
caxis([0 8]);
axis([-5 5 -5 5 0 10]);
Sorry if question already has been asked. And I apologize for my English:)
3 comentarios
Fangjun Jiang
el 3 de Oct. de 2011
How can you display a surface (assume 3D) in a plane (like a piece of paper)? Are you looking for contour()?
Respuesta aceptada
Más respuestas (2)
Jose Sosa Lopez
el 8 de Sept. de 2020
A few years later, but what I did in my code which was similar, after to create the figure, I put the comand:
view ([0 0 90])
so, I get the X-Y view
if I want the X-Z view, I use:
view ([0 -90 0])
I guess it depends of the arrangment of your view.
0 comentarios
Matt Tearle
el 3 de Oct. de 2011
"I want to display it in XY plane"
You mean as an image or contour map? In which case, use imagesc or contour. doc contour gives other options as well (filled contours, and so on).
Ver también
Categorías
Más información sobre Surface and Mesh Plots en Help Center y File Exchange.
Productos
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!