The problem is that you are trying to concatenate matrices and cells,
try this:
raw={'p1'; 'p2'; 'p3'}
column1=[200;250;300]
column1=num2cell(column1)
checked=false(size(raw,1),1)
cellArray=[raw,column1,num2cell(checked)]
set(handles.uitable5, 'Data', cellArray)
set(handles.uitable5, 'ColumnFormat', {'string', 'numeric', 'logical'})
set(handles.uitable5, 'CellEditCallback', @check_checked)
or this... depending on what you want:
raw={'p1'; 'p2'; 'p3'}
column1=[200;250;300]
column1=num2cell(column1)
checked=false(size(raw,1),1)
cellArray= {raw,column1,checked}
set(handles.uitable5, 'Data', cellArray)
set(handles.uitable5, 'ColumnFormat', {'string', 'numeric', 'logical'})
set(handles.uitable5, 'CellEditCallback', @check_checked)
Best Answer