Clear Filters
Clear Filters

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

1 view (last 30 days)
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!

Accepted Answer

Astha Singh
Astha Singh on 14 Mar 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:

More Answers (0)

Categories

Find more on Migrate GUIDE Apps in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!