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

조회 수: 2 (최근 30일)
MD EQBAL
MD EQBAL 2022년 1월 27일
편집: DGM 2022년 1월 29일
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
KALYAN ACHARJYA
KALYAN ACHARJYA 2022년 1월 29일
No, you might be misunderstanding the case.
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