Use data calculated in a matlab programm in gui

1 Ansicht (letzte 30 Tage)
Faredin Thaqi
Faredin Thaqi am 29 Apr. 2022
Beantwortet: Kevin Holly am 2 Mai 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?

Antworten (1)

Kevin Holly
Kevin Holly am 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.

Kategorien

Mehr zu Develop Apps Using App Designer finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by