uitable - get data from numeric and logical cells altogether
1 visualizzazione (ultimi 30 giorni)
Mostra commenti meno recenti
Suppose I have a uitable containing a column with numerical values and several other columns containing a logical value (i.e. a checkbox).
When I try to acess the uitable data:
answer = get(hObject,'data');
the answer contains only the numerical column and ignores the logical values contained in the following columns.
Supposing I want to colect all the data from the table, including both numerical and logical results, would someone be able to tell me how to do it?
0 Commenti
Risposte (2)
Doug Hull
il 9 Feb 2011
K>> set(handles.uitable2,'data',{2, true, 't'; 3, false, 'h'})
K>> get(handles.uitable2,'data')
ans =
[2] [1] 't'
[3] [0] 'h'
This works. What were you doing?
0 Commenti
Vedere anche
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!