Plot matrix numerical results as image or table

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!

 Akzeptierte Antwort

Voss
Voss am 21 Nov. 2022
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 Kommentare

Mikel
Mikel am 25 Nov. 2022
Thanks!! this was what I wanted!
Voss
Voss am 25 Nov. 2022
You're welcome!

Melden Sie sich an, um zu kommentieren.

Weitere Antworten (0)

Produkte

Version

R2022b

Gefragt:

am 21 Nov. 2022

Kommentiert:

am 25 Nov. 2022

Community Treasure Hunt

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

Start Hunting!

Translated by