フィルターのクリア

Using App designer to output a variable value onto new app canvas

1 回表示 (過去 30 日間)
Hawki005
Hawki005 2019 年 3 月 11 日
回答済み: Astha Singh 2019 年 3 月 14 日
Please bear with me if this is simple as im very inexperienced using app designer.
I have an app that collects 6 variables (Temps, speeds etc). I then have an external code that uses the variables to produce a final output 'rate'. I would like for this output (numerical) to be given to the user in a new app (popup) one they have pressed a button labeled 'Calculate' on the canvas that they inputted the variables into.
How do I go about calling a variable from the external code and getting it to appear on the new app canvas after the callback for the 'calculate' button is activated?
Thanks in advance!

採用された回答

Astha Singh
Astha Singh 2019 年 3 月 14 日
If the output from your first code is saved in a text file, you can simply read the data from the text file using fscanf function, this would go inside the callback function of the 'Calculate' button. More details about the fscanf function can be found at the following link:
In the following link you can find information about importing other forms of input text data in MATLAB:

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeMigrate GUIDE Apps についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by