Clear Filters
Clear Filters

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

1 view (last 30 days)
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 Comment
Mario Malic
Mario Malic on 19 Dec 2022
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

Sign in to comment.

Answers (0)

Categories

Find more on Develop Apps Using App Designer in Help Center and File Exchange

Products


Release

R2021a

Community Treasure Hunt

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

Start Hunting!