How to plot the matrix values in the form of a slice plane?

4 visualizaciones (últimos 30 días)
MD EQBAL
MD EQBAL el 27 de En. de 2022
Editada: DGM el 29 de En. de 2022
I have the following matrix:-
V=rand(4);
I want to create a plane at x=10 in 3D which contains the value of the above matrix in the form of colors.As V is a 4x4 matrix, so the plane I need should contain total 16 cells having different colors.

Respuestas (1)

KALYAN ACHARJYA
KALYAN ACHARJYA el 27 de En. de 2022
Editada: KALYAN ACHARJYA el 27 de En. de 2022
Please refer the surf plot, and change the plot properties accordingly.
  3 comentarios
KALYAN ACHARJYA
KALYAN ACHARJYA el 29 de En. de 2022
No, you might be misunderstanding the case.
DGM
DGM el 29 de En. de 2022
Editada: DGM el 29 de En. de 2022
surf() and pcolor() plots data at the vertices of the mesh. A mesh with 3x3 faces has 4x4 vertices. Tools like image(), imagesc(), and imshow() plot data at the centers of the faces.

Iniciar sesión para comentar.

Categorías

Más información sobre Surface and Mesh Plots en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by