Display table with numbers and text as uitable
2 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
danel
am 18 Mär. 2019
Kommentiert: danel
am 18 Mär. 2019
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
0 Kommentare
Akzeptierte Antwort
Image Analyst
am 18 Mär. 2019
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);
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Develop Apps Using App Designer finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!