Cell editable callback

조회 수: 2 (최근 30일)
Eggo Ogge
Eggo Ogge 2011년 3월 15일
When I want to read data from uitable, I can read only the first 5 rows, how to do, that I could read and send data from six and more rows?
For example, i have uitable 10x2, and when i wrote a number, it would sent to controller, everything fine from the first until fourth rows,but when i wrote to the fifth and bigger row it don't send anything. So I understand, that uitable CellEditCallback works up to 5th row. and I need that it would work from 1st until 10th row.
Code is simple: data(1,1)=ddereq(channel,'mw300'); data(1,2)=ddereq(channel,'mw330'); data(2,1)=ddereq(channel,'mw301'); data(2,2)=ddereq(channel,'mw331'); data(3,1)=ddereq(channel,'mw302'); data(3,2)=ddereq(channel,'mw332'); data(4,1)=ddereq(channel,'mw303'); data(4,2)=ddereq(channel,'mw333'); data(5,1)=ddereq(channel,'mw304'); data(5,2)=ddereq(channel,'mw334'); data(6,1)=ddereq(channel,'mw305'); data(6,2)=ddereq(channel,'mw335'); data(7,1)=ddereq(channel,'mw306'); data(7,2)=ddereq(channel,'mw336'); data(8,1)=ddereq(channel,'mw307'); data(8,2)=ddereq(channel,'mw337'); data(9,1)=ddereq(channel,'mw308'); data(9,2)=ddereq(channel,'mw338'); data(10,1)=ddereq(channel,'mw309'); data(10,2)=ddereq(channel,'mw339'); ddereg-sends to controller. It works from data(1,1) until data (5,1) data (5,1) until data(10,2) don't work.
  댓글 수: 2
Oleg Komarov
Oleg Komarov 2011년 3월 15일
Your question is not clear. What do you mean by "reading" a uitable?
Jan
Jan 2011년 3월 15일
There is no built-in limit of the elements of UITABLE. Please post the code, which causes the troubles.

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

채택된 답변

Oleg Komarov
Oleg Komarov 2011년 3월 15일
I don't know why you've chosen that way, but if you have a figure with a uitable in it:
% Create uitable
uitable('Data',magic(10),'ColumnWidth',{25});
% retrieve handle to uitable
tH = findobj(gcf,'Type','uitable');
% retrieve data
data = get(tH,'Data')
EDIT
If you're having issues when using a callback please post the whole code.
Oleg

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 App Building에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by