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.

 采纳的回答

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 个评论

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?
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.
There is empty place...on the right side.....What property? Any command?
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.
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.
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...

请先登录,再进行评论。

更多回答(0 个)

类别

帮助中心File Exchange 中查找有关 Migrate GUIDE Apps 的更多信息

标签

Community Treasure Hunt

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

Start Hunting!

Translated by