How to use doubles and Character together in Uitable
2 ビュー (過去 30 日間)
古いコメントを表示
I am having trouble assigning the 'Data' property of uitable.. My data includes columns of doubles and columns of character (arrays?). I tried to make a cell out of all of them, but when it's time to assign it to the uitable, it gives me the following error: Data within a cell array must have size [1 1]
the info, I'd like to show in the table is:
[11 1 SC 3.3 0.5
12 2 MC 6.1 0.4
... ]
dat =
[78x1 double] [78x1 double] {78x1 cell} [78x1 double] [78x1 double]
size(dat) = 1 5 % where it should be 78 * 5 !!
what are my options to appropriately display my data? thank you
0 件のコメント
回答 (2 件)
Walter Roberson
2012 年 7 月 24 日
newdat = {dat{1}, dat{2}, dat{3}, dat{4}, dat{5}};
3 件のコメント
Walter Roberson
2012 年 7 月 24 日
Hmmm... try
newdat = [dat{1}, dat{2}, dat{3}, dat{4}, dat{5}];
参考
カテゴリ
Help Center および File Exchange で Whos についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!