GUI table elements assigning

i have a table in my GUI, and i get the elements of that table in 'd' by using
function uitable1_CellEditCallback(hObject, eventdata, handles) d = get(hObject, 'data')
now i wish to assign the values in the d (8X2 matrix) into anothr matrix k(4X2X3)
how can i use the evalin command here if it all i should

답변 (1개)

Walter Roberson
Walter Roberson 2011년 6월 2일

0 개 추천

d has 16 elements, but you want to assign it in to a matrix with 24 elements. Where should the elements of d be positioned in that matrix?
You could use
assignin('base','k',NewK)
but that is not recommended. Please read this FAQ

댓글 수: 2

sumeet
sumeet 2011년 6월 2일
its like d(1,1), d(1,2), d(2,1)........d(4,2) get stored in k(i,j,1)
then d(2,1), d(2,2), d(3,1).......d(5,2)get stored in k(i,j,2) and so on
Walter Roberson
Walter Roberson 2011년 6월 2일
So d(2,1) is to be stored twice??

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

카테고리

도움말 센터File Exchange에서 Line Plots에 대해 자세히 알아보기

태그

질문:

2011년 6월 2일

Community Treasure Hunt

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

Start Hunting!

Translated by