Using App designer to output a variable value onto new app canvas
3 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
Hawki005
el 11 de Mzo. de 2019
Respondida: Astha Singh
el 14 de Mzo. de 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!
0 comentarios
Respuesta aceptada
Astha Singh
el 14 de Mzo. de 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:
0 comentarios
Más respuestas (0)
Ver también
Categorías
Más información sobre Migrate GUIDE Apps en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!