I send a data (2 numeric columns, changeable number rows) to a uitable and I wish that the 3rd column will be logical so I can select data from it.
I already declare the 3rd column in GUIDE uitable to be editable but I get this error:
"Warning: Table data is not editable at this location."
I tried many things but still the error reoccurs. How can it be solved?
[mcolumn,ncolumn] = size(myInfo);
fColumn = logical(repmat(flase,[mcolumn,1]))
Ctemp = [myInfo, fColumn]
cellMyInfo = num2cell(myInfo);
columnform = {'numeric','numeric','logical'};
set(handles.outputTable,'data',cellMyInfo);
set(handles.outputTable, 'ColumnFormat', columnform);
set(handles.outputTable, 'ColumnEditable', [false, false, true]);

댓글 수: 2

Walter Roberson
Walter Roberson 2018년 12월 24일
flase ?? (In you repmat)
hsi
hsi 2018년 12월 24일
syntex error. Thanks

댓글을 달려면 로그인하십시오.

 채택된 답변

Walter Roberson
Walter Roberson 2018년 12월 24일

0 개 추천

[mcolumn,ncolumn] = size(myInfo);
fColumn = logical(repmat(false,[mcolumn,1]))
cellMyInfo = [num2cell(myInfo), num2cell(fColumn)];
columnform = {'numeric','numeric','logical'};
set(handles.outputTable, 'data', cellMyInfo);
set(handles.outputTable, 'ColumnFormat', columnform);
set(handles.outputTable, 'ColumnEditable', [false, false, true]);

추가 답변 (0개)

카테고리

도움말 센터File Exchange에서 Develop Apps Using App Designer에 대해 자세히 알아보기

태그

질문:

hsi
2018년 12월 24일

댓글:

hsi
2018년 12월 24일

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by