Effacer les filtres
Effacer les filtres

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

1 vue (au cours des 30 derniers jours)
Hawki005
Hawki005 le 11 Mar 2019
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!

Réponse acceptée

Astha Singh
Astha Singh le 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:

Plus de réponses (0)

Catégories

En savoir plus sur Migrate GUIDE Apps dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by