필터 지우기
필터 지우기

need to create a popup drop down list in one of the columns in the tabel in gui which increaes in row size which every event .. an event is a mouse click

조회 수: 4 (최근 30일)
here is the code for the creation of the table
uitable(pan, 'Tag', 'PPR_TablePoints', ...
'Units', 'normalized', ...
'Position', [0.05, 0.01, 0.3, 0.98], ...
'CellSelectionCallback', @(src,evnt) PPTableButtonDownCallback(src, evnt, this), ...
'CellEditCallback', @(src,evnt) PPTableEditCallback(src, evnt, this))
here is code for the upodate of the tabel created ....the loop updates the rows with each event which is the click
ncols = 4;
data = cell(nItems, ncols);
for i =1 : nItems
data{i,1} = i;
data{i,2} = pointlist(i, 1);
data{i,3} = pointlist(i, 2);
data{i,4} = xxxxxxxxxxxxxxx
end
i tried with categorical
categorical(data.data{1,4},{option1 ,option2}, ordinal,true);
the showed an error dot indexing is not supported....
NEED HELP
  댓글 수: 6
Jan
Jan 2019년 7월 24일
Please post the code you have used. Restart Matlab and try it again.
Alan Antony
Alan Antony 2019년 7월 24일
columnname = {'#', 'x', 'y', 'no','id','Remove'};
columnformat = {[] [] [] {'value ', 'value2'} [] [] };
editable = [false true true true false false];
hTable.ColumnName = columnname;
hTable.ColumnFormat = columnformat;
hTable.ColumnEditable = editable;
hTable.RowName = [ ];
hTable.Data = data;
hTable.ColumnWidth = {60, 60, 60, 60, 60, 60};

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

채택된 답변

Harsha Priya Daggubati
Harsha Priya Daggubati 2019년 8월 6일
Hi,
It would be helpful to solve the issue if you share your code completely and elaborate on your issue.
  댓글 수: 1
Alan Antony
Alan Antony 2019년 8월 6일
thankyou for your response ..... changed the workflow of the fuctions calls .... now its working as per requirements . it was a problem with workflow and my algorithm as in whole. got it done .. i will post the questions when i have further doubts
thank you

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

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 R Language에 대해 자세히 알아보기

태그

제품

Community Treasure Hunt

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

Start Hunting!

Translated by