필터 지우기
필터 지우기

Plot matrix numerical results as image or table

조회 수: 3 (최근 30일)
Mikel
Mikel 2022년 11월 21일
댓글: Voss 2022년 11월 25일
Hello,
I have 2 matrixes and I want to plot their numerical values acompaining the surface that I have created with them. This matrixes corresponds to the Z value of the surfaces and I need to show those values. I attached an example that I made in paint
I dont know how to convert this matrixes from a variable to something like an image or any other type of variable plotable in this very way.
Thanks in advance!

채택된 답변

Voss
Voss 2022년 11월 21일
If I understand correctly, maybe use a uitable or two.
z = magic(4);
surf(z);
set(gca(),'Position',[0.05 0.1 0.4 0.8]);
t = uitable( ...
'Units','normalized', ...
'Position',[0.55 0.1 0.4 0.8], ...
'Data',z, ...
'ColumnWidth',repmat({40},1,size(z,2)));
  댓글 수: 2
Mikel
Mikel 2022년 11월 25일
Thanks!! this was what I wanted!
Voss
Voss 2022년 11월 25일
You're welcome!

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Images에 대해 자세히 알아보기

제품


릴리스

R2022b

Community Treasure Hunt

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

Start Hunting!

Translated by