Moving Data Between Apps and Separate Scripts?

1 visualizzazione (ultimi 30 giorni)
James Cowan
James Cowan il 14 Mag 2021
Risposto: Jan il 14 Mag 2021
Hello everyone. I am a relative beginner with MATLAB, and I have very recently started learning how App Designer works. I am trying to find a way to import input from an app into a completely separate script. Similarly, I would also like to learn how to import variables from a separate script into the code of an app. Is this possible, and what commands can be used to do this? Any help or suggestions would be greatly appreciated. Thanks!

Risposte (1)

Jan
Jan il 14 Mag 2021
Scripts are the wrong approach to transmit or receive inputs and outputs.
The good programming practice is to start a GUI and let its callbacks call functions receiving their outputs and storing them for calling further functions.
In opposite to this injecting variables in GUIs and scripts makes the debugging horrible and the code prone to bugs.

Categorie

Scopri di più su Develop Apps Using App Designer in Help Center e File Exchange

Prodotti

Community Treasure Hunt

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

Start Hunting!

Translated by