how to create a figure that includes a table
61 次查看(过去 30 天)
显示 更早的评论
if I have the folloowing table:
number=[1;2;3;4;5];
data=[34;39;41;22;19];
subData=[0.5;0.7;0.9;1;1.1];
answer=table(number, data, subData);
Is there a way to display this table as a figure once I run the code
0 个评论
采纳的回答
Eric Delgado
2023-3-9
Yeah... just create an uitable. Try this...
number=[1;2;3;4;5];
data=[34;39;41;22;19];
subData=[0.5;0.7;0.9;1;1.1];
answer=table(number, data, subData);
fig = uifigure;
tab = uitable(fig, 'Data', answer)
0 个评论
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Interactive Control and Callbacks 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!