Effacer les filtres
Effacer les filtres

How to display the value of a variable in real time in a uitable through appdesign

3 vues (au cours des 30 derniers jours)
SHUAI LI
SHUAI LI le 12 Fév 2024
Réponse apportée : Taylor le 13 Fév 2024
I write a simple program as follows, want to create a table in appdesign and update the values of x and y in real time. Can this be implemented in matlab? I know it can be added to myScript through uitable and set, but I just want to do it through appdesign.
% myScript.m
for x = 1:10
y = x.^2;
pause(2)
end

Réponses (2)

Voss
Voss le 13 Fév 2024
"I know it can be added to myScript through uitable and set, but I just want to do it through appdesign[er]"
It works the same in App Designer; create a uitable and use set to set its properties.

Taylor
Taylor le 13 Fév 2024
Yes, this is possible. To implement this in App Designer, you will access the "Data" property of the UITable.
app.UITable.Data = [X Y];

Catégories

En savoir plus sur Develop Apps Using App Designer dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by