display numbers at table in matlab

dear all... i want to ask about how to display numbers in matlab table?? the example like that : if i have a number at a text in GUI, the number is "25", how can i display "25" in the first column of the firs row??
i really hope u can answer my question... thank you...

1 件のコメント

Walter Roberson
Walter Roberson 2012 年 6 月 22 日
See for example http://www.mathworks.com/matlabcentral/answers/41750-i-need-some-help-with-creating-a-program-containing-a-graph-and-table

サインインしてコメントする。

回答 (1 件)

Image Analyst
Image Analyst 2012 年 6 月 22 日

0 投票

One way is to put a uitable control on your GUI. You can use GUIDE to place such a table on your window. Then create a cell array where each cell in the cell array contains the contents of one "cell" in your table. Assign that cell array to the 'data' property.
set(handles.myTable, 'Data', myCellArray);
The table will be like a spreadsheet. Be sure to set the ColumnEditable property to say whether or not you want to give your users the ability to change the table cell.

カテゴリ

ヘルプ センター および File ExchangeMATLAB についてさらに検索

質問済み:

2012 年 6 月 22 日

Community Treasure Hunt

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

Start Hunting!

Translated by