I want to have an uitable with two columns: the first column contains names (format of the column is set to Let MATLAB choose) and the second column contains checkboxes (format Logical, Editable).
I am trying to fill the table using the code:
tableContent = {names include};set(handles.uitable1,'Data',tableContent);
where names is a cell array (size n*1) and include is a logical array (size n*1).
I get the error: Error using set Values within a cell array must be numeric, logical, or char
I have also unsuccesfully tried to convert names to char. Is there any way to do that?
Thank you.
Best Answer