How to display a matrix in a matlab GUI table.
14 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
I have made a matrix and a table in the GUI but am unsure how to load the data into.
The data in question is called comparison just for example.
I have written the data as a 4x4 matrix.
0 comentarios
Respuestas (2)
Jan
el 30 de Mzo. de 2015
Editada: Jan
el 30 de Mzo. de 2015
The documentation of uitable explains clearly how to insert data. Do you have a specific question after reading the docs?
f = figure;
t = uitable('ColumnName', {'a', 'b', 'c', 'd'});
drawnow;
set(t, 'Data', rand(4))
1 comentario
Declan Simons
el 30 de Mzo. de 2015
Editada: Declan Simons
el 30 de Mzo. de 2015
Image Analyst
el 30 de Mzo. de 2015
Whenever you want to send new data in "comparison" to your table, do this:
set(handles.uitable1, 'Data', comparison);
uitable1 is whatever you have as the "tag" property for your table in GUIDE.
0 comentarios
Ver también
Categorías
Más información sobre Migrate GUIDE Apps en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!