how to create a figure that includes a table

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

 Respuesta aceptada

Eric Delgado
Eric Delgado el 9 de Mzo. de 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)

Más respuestas (0)

Categorías

Productos

Versión

R2021b

Etiquetas

Preguntada:

el 9 de Mzo. de 2023

Respondida:

el 9 de Mzo. de 2023

Community Treasure Hunt

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

Start Hunting!

Translated by