There is a code:
cnames = {'A','B'}; rnames = {'1'}; columneditable = [true, true]; columnformat = {'char'};
t = uitable('ColumnName',cnames, 'RowName',rnames,'Position',[334 290 205 58], 'ColumnEditable',columneditable,'ColumnFormat',columnformat);
The problem, when i want to write something to cell, it gives an error, that cell is not editable. What is wrong here?

 채택된 답변

Andrew Newell
Andrew Newell 2011년 4월 12일

0 개 추천

When I try this, I get a link saying "Please click here for more information." Clicking on it, I get "When you create a table, you must specify value of Data. The Data property dictates what type of data can exist in any given cell."

댓글 수: 2

Eggo Ogge
Eggo Ogge 2011년 4월 12일
columnformat = {'char'}
But here I wrote, that my data format will be 'char'.
Andrew Newell
Andrew Newell 2011년 4월 12일
Try putting in some empty strings:
t = uitable(... 'Data',{'',''});

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

추가 답변 (0개)

카테고리

도움말 센터 및 File Exchange에서 App Building에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by