I want to show this three arrays in a single UITable in 3 columns.can anyone help me how to code this one in matlab appdesigner??

조회 수: 2 (최근 30일)
I have 3 vector arrays i.e.
A=[10 20 40]
B=[2 3 44]
C=[1 3 5]
I want to show this three arrays in a single UITable in 3 columns in appdesigner(each array will be assigned as each column in uitable).can anyone help me how to code this one in matlab appdesigner??

채택된 답변

Monica Roberts
Monica Roberts 2022년 5월 3일
You can make a table from your data and then populate the uitable "Data" property. First create the table:
mydata = table(A',B',C')
mydata =
3×3 table
Var1 Var2 Var3
____ ____ ____
10 2 1
20 3 3
40 44 5
Then assign this value to the data property in the uitable
app.UITable.Data = mydata;
  댓글 수: 2
Monica Roberts
Monica Roberts 2022년 5월 3일
The error says "All variables must have the same number of rows." It sounds like xn, ac, and dy are different sizes. When you transpose them with the ' they should all be the same number of rows.

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

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Migrate GUIDE Apps에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by