Use data calculated in a matlab programm in gui

1 vue (au cours des 30 derniers jours)
Faredin Thaqi
Faredin Thaqi le 29 Avr 2022
I am working on a programm that calculates several variables. At the end I want it to open the Interface that i created with the app designer and i want it to show the values of calculated variables. Can you guys tell me how i can use the data from the main programm to print it to the gui text field for example?

Réponses (1)

Kevin Holly
Kevin Holly le 2 Mai 2022
Is this program written in script/function MATLAB files? You can call these scripts/function within App Designer or you could write them within App Designer through startup or callback functions in code view.
To change the text of the label you can write:
app.Label.Text = "Hello world"
if you have numeric data
app.Label.Text = num2str(variable)
Here is a nice intro to App Designer.

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