How to show matrix data in the app.UITable.Data with every iteratoin in a loop??

조회 수: 1 (최근 30일)
Chirag
Chirag 2022년 12월 14일
댓글: Mario Malic 2022년 12월 19일
I work on a project in the app designer to creat a table. I can see the table in command window but if I tried to assign it to the UITable.Data. it just does not work.
here is the funciton that I have.
H(end+1,:) = {Step_Size, Power, Freq}; % Add new rows of data in the loop
App.UITable.Data = table2struct(H); % tried to convert it to struct because
  댓글 수: 1
Mario Malic
Mario Malic 2022년 12월 19일
Initialize the first row of UITable just once
app.UITable.Data = table(Step_Size, Power, Freq);
Then add the rest of the data
app.UITable.Data(end+1,:) = [Step_Size, Power, Freq]; % if these are scalars

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

답변 (0개)

카테고리

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

제품


릴리스

R2021a

Community Treasure Hunt

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

Start Hunting!

Translated by