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

1 次查看(过去 30 天)
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.

回答(1 个)

KALYAN ACHARJYA
KALYAN ACHARJYA 2022-1-27
编辑:KALYAN ACHARJYA 2022-1-27
Please refer the surf plot, and change the plot properties accordingly.
  3 个评论
DGM
DGM 2022-1-29
编辑:DGM 2022-1-29
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.

请先登录,再进行评论。

类别

Help CenterFile Exchange 中查找有关 Surface and Mesh Plots 的更多信息

标签

Community Treasure Hunt

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

Start Hunting!

Translated by