Add table to an image

조회 수: 3 (최근 30일)
Pui Hang Li
Pui Hang Li 2018년 8월 13일
답변: ANKUR KUMAR 2018년 10월 5일
How do i add a table into a image in matlab ? the table will be variable due to the end results, the image will be fixed
  댓글 수: 1
Geoff Hayes
Geoff Hayes 2018년 8월 13일
Pui - please clarify what you mean by add a table into a image. Can you show an example of what you mean to do here?

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

답변 (1개)

ANKUR KUMAR
ANKUR KUMAR 2018년 10월 5일
Up to my knowledge, you can not add matlab table over an image. But you can use text command to do the same. Here is an example.
clc
clear
var1=rand(10,4);
subplot(1,2,1)
contourf(magic(5))
header={'column 1','column 2','column 3','column 4'};
var1_char=arrayfun(@(x) num2str(x) , var1,'uni',0);
ax2 = axes('Position',[0.01 0.01 0.98 0.98],'Visible','off');
for ii=1:4
text(.55+(ii-1)/9, .69, [header{ii};var1_char(:,ii)],'units', 'normalized','Color','b')
end

카테고리

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

태그

Community Treasure Hunt

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

Start Hunting!

Translated by