How do I get the values from workspace to the app designer table

14 views (last 30 days)
I want to show the data in the XX array found in the workspace, on the table in app designer in the XX column

Answers (1)

Eric Delgado
Eric Delgado on 20 Sep 2022
You could use save and load functions or assignin function (if you want to send data from appdesigner to base workspace). But maybe a better approach is to read the data directly in your app, just call it from the startup of your app, putting the table in your app.UITable.
% In your workspace:
save('myFile.mat', 'myTableVariable')
% In your app:
load('myFile.mat')
app.UITable.Data = myTableVariable;

Categories

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

Community Treasure Hunt

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

Start Hunting!