Use data calculated in a matlab programm in gui

조회 수: 1 (최근 30일)
Faredin Thaqi
Faredin Thaqi 2022년 4월 29일
답변: Kevin Holly 2022년 5월 2일
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?

답변 (1개)

Kevin Holly
Kevin Holly 2022년 5월 2일
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.

카테고리

Help CenterFile Exchange에서 Develop Apps Using App Designer에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by