fitting a uitable in a subplot
2 次查看(过去 30 天)
显示 更早的评论
Hello
I am trying to have a subplot including a uitable. I found one answer from mathworks for creating uitable and I am using it. it works fine separately as a figure but giving me error of "position" in a subplot. is there a way that I can fit it in a this subplot? can anybody help please ?
Thanks
subplot(2,2,2);
imshow('zoom1.JPG');
subplot(2,2,3);
set(f,'Position',[20 20 258 100]);
dat = {' CC', 4500, ' k';...
' CE', 100, ' bl;...
' LE', 75, ' lm';...
' acv', 0.25, ' blm;...
' Ill', 450, ' l';...
' E',200, ' lux';};
columnname = {'Parameter', 'Value', 'Units'};
columnformat = {'char', 'numeric', 'char'};
t = uitable('Units','normalized','Position',...
[0.05 0.05 0.755 0.87], 'Data', dat,...
'ColumnName', columnname,...
'ColumnFormat', columnformat,...
'RowName',[]);
0 个评论
回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Christmas / Winter 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!