Display table with numbers and text as uitable

2 vues (au cours des 30 derniers jours)
danel
danel le 18 Mar 2019
Commenté : danel le 18 Mar 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

Réponse acceptée

Image Analyst
Image Analyst le 18 Mar 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);
  1 commentaire
danel
danel le 18 Mar 2019
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.

Connectez-vous pour commenter.

Plus de réponses (0)

Catégories

En savoir plus sur Develop Apps Using App Designer dans Help Center et File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by