creating a simple table and edit it.
1 回表示 (過去 30 日間)
古いコメントを表示
What is the best way to create a simple table in matlab? I read somewhere that you could use
Mytable = ModelAdvisor.Table(2,3);
But what this gives me is just:
Mytable =
ModelAdvisor.Table
I want to be able to open it, edit it and put numbers and text in the table.
How does it work?
0 件のコメント
回答 (1 件)
Azzi Abdelmalek
2013 年 1 月 24 日
編集済み: Azzi Abdelmalek
2013 年 1 月 24 日
Use uitable
doc uitable
2 件のコメント
Azzi Abdelmalek
2013 年 1 月 25 日
編集済み: Azzi Abdelmalek
2013 年 1 月 25 日
f = figure('Position',[100 100 400 250]);
dat =[num2cell([1;4;7]) {'yes';'no';'yes'} num2cell([1 ;2;7])]
colname = {'a', 'test', 'b'};
colformat = {'numeric', 'char', 'numeric' }
t=uitable('Units','normalized','Position',[0.1 0.1 0.7 0.8],'Data', dat,...
'RowName',{'1','2','3'}, 'ColumnName',colname,'ColumnFormat', colformat)
参考
カテゴリ
Help Center および File Exchange で Cell Arrays についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!