fitting a uitable in a subplot

2 views (last 30 days)
farfar
farfar on 10 Jul 2018
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',[]);

Answers (0)

Categories

Find more on Christmas / Winter in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!