How to display an array in uitable GUI when click "show table" button?
Mostrar comentarios más antiguos
Hi,
I want to show my 1x2 array in uitable by using one click button:
function button_show_table_Callback(hObject, eventdata, handles)
dat = [1 2 3 4 5];
set(handles.uitable_data, 'Visible', 'on');
h = uitable('Data', dat, 'ColumnFormat', 'numeric');
close(h);
guidata(hObject, handles);
Below is my error message: ColumnFormat must be a cell array
May I know what is the problem? Thank you.
Respuesta aceptada
Más respuestas (0)
Categorías
Más información sobre Develop Apps Using App Designer en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!