Effacer les filtres
Effacer les filtres

how to create a figure that includes a table

18 vues (au cours des 30 derniers jours)
Tariq Hammoudeh
Tariq Hammoudeh le 9 Mar 2023
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

Réponse acceptée

Eric Delgado
Eric Delgado le 9 Mar 2023
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)

Plus de réponses (0)

Catégories

En savoir plus sur Sequence and Numeric Feature Data Workflows dans Help Center et File Exchange

Produits


Version

R2021b

Community Treasure Hunt

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

Start Hunting!

Translated by