Display table with numbers and text as uitable

3 次查看(过去 30 天)
If I have a simple matlab table, with some columns containing numbers(double) and other columns contain text(cell), how can I display it as uitable? E.g. the matlab table may read like:
Names Ages
John 12
Mike 10
Peter 15

采纳的回答

Image Analyst
Image Analyst 2019-3-18
Try this:
handles.uitable1.Data = table2cell(t);
where t is your table, and the uitable is a GUIDE control. If you're not using GUIDE, then just use
uitableHandle.Data = table2cell(t);
  1 个评论
danel
danel 2019-3-18
Thank you! I need to learn more about how to use handles and display the uitable but the conversion to cell suggestion gives me a way to show the uitable using my limited knowledge.

请先登录,再进行评论。

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Develop Apps Using App Designer 的更多信息

标签

Community Treasure Hunt

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

Start Hunting!

Translated by