Uitable set problems
6 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Petya Popova
am 12 Jun. 2012
Bearbeitet: cdr
am 22 Apr. 2015
Hi everyone! I can't seem to populate my uitable. I want the first column to be names and the second and third numbers so i do the following:
char1=char(names);
dat={char1 acc sp};
set(handles.uitable1,'Data', dat, 'RowName',num);
,but i get the following error:
Data within a cell array must have size [1 1]
Please help what am i doing wrong? Ive tried setting the Column format to ''char'', but still no luck. Thanks in advance!
0 Kommentare
Akzeptierte Antwort
Walter Roberson
am 12 Jun. 2012
dat={ cellstr(char1) num2cell(acc(:)) num2cell(sp(:)) };
6 Kommentare
Walter Roberson
am 13 Jun. 2012
When
names = {all.Name};
then to use those names as a legend, use
legend(names{:})
Siehe auch
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!