필터 지우기
필터 지우기

UI Table In App Designer Matlab

조회 수: 1 (최근 30일)
Mohammad Maliq
Mohammad Maliq 2019년 5월 7일
댓글: Mohammad Maliq 2019년 5월 11일
Hi all
I was hoping someone could help me with the following:-
I have 7 x matrices each matrix contains a set of XY co-ordinates of varying rows.
I am trying to display the co-ordiantes of each of these matrixes in a UI table using App Designer.
However I i can only display 1 x set of co-ordinates only. The code I have is shown below.
My current output looks like:-
p1.JPG
As you can see Matlab only ouputs one set of co-ordinates.
Any ideas?
Thank you.
app.Results.Data = Data_Set_One, Data_Set_Two
  댓글 수: 7
Walter Roberson
Walter Roberson 2019년 5월 10일
Instead of using a numeric matrix, use cell arrays.
part1 = num2cell(Data_Set_One(:,1:2));
n1 = size(part1,1);
part2 = num2cell(Data_Set_Two(:,1:2));
n2 = size(part2,1);
nr = max(n1, n2);
newdata = cell(nr, 4);
newdata(1:n1, 1:2) = part1;
newdata(1:n2, 3:4) = part2;
app.Results.Data = newdata;
Mohammad Maliq
Mohammad Maliq 2019년 5월 11일
Now that worked.
Thanks

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

답변 (0개)

카테고리

Help CenterFile Exchange에서 Develop Apps Using App Designer에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by