uitable / string question
Show older comments
I create a uitable to capture a user input of strings.
global num_groups;
num_tech = uitable('Data',cell(1,num_groups));
temp = cell(1,num_groups);
for i = 1:1:num_groups
temp{1,i} = 'char';
end
set(num_tech,'ColumnEditable',[true(1,num_groups)],'ColumnFormat',temp);
I think it is pretty close to right because it left aligns, which I think a uitable with character inputs should do. Whatever string I type into the input cells is transformed into 'NaN'. What settin am I missing?
Answers (1)
Edward Umpfenbach
on 8 May 2012
0 votes
Categories
Find more on Migrate GUIDE Apps in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!