Loading data into matlab gui from excel

Hello,
can you advise me how can I load data into gui into spreadsheet format?
Thank you for your answer.

 Respuesta aceptada

Image Analyst
Image Analyst el 30 de Sept. de 2015
You can use guide and put a grid ((uitable) onto the figure. Then use set() to send your data to it:
set(handles.uitable1, 'data', yourData);

6 comentarios

Image Analyst
Image Analyst el 30 de Sept. de 2015
Radoslav's "Answer" move to a comment here:
And how can I customize size of table to numbers of columns when I will always load different numbers of columns?
Image Analyst
Image Analyst el 30 de Sept. de 2015
I believe the size of the table adjusts to the data you pass it. If not, there's a property you can set that will change the number of rows and columns.
Radoslav Vandzura
Radoslav Vandzura el 30 de Sept. de 2015
Editada: Walter Roberson el 30 de Sept. de 2015
There is empty place...on the right side.....What property? Any command?
Walter Roberson
Walter Roberson el 30 de Sept. de 2015
You can set the ColumnWidth property
Note: there is no direct method of automatically resizing the column widths when the size of the control is changed. Within the last couple of days someone posted a link to some information from Yair on how to do this by calling Java.
Image Analyst
Image Analyst el 30 de Sept. de 2015
You can width the columns with the column width property. You can bring in the right side of the table control using the 'Position' property to set the size.
Radoslav Vandzura
Radoslav Vandzura el 3 de Oct. de 2015
Could you advise me with my problem with loading string data.....when I want to load string data into uitable....in these cells are value 'NaN'. How can I resolve it?:) Thank you very much for your answer...

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

Más información sobre Migrate GUIDE Apps en Centro de ayuda y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by