Filter löschen
Filter löschen

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

1 Ansicht (letzte 30 Tage)
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!

Akzeptierte Antwort

Astha Singh
Astha Singh am 14 Mär. 2019
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:

Weitere Antworten (0)

Kategorien

Mehr zu Migrate GUIDE Apps 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