![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/713292/image.png)
How can I create app from main script along with their subscript ?
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
Kaustubh hike
am 16 Aug. 2021
Beantwortet: Thomas Fournier
am 16 Aug. 2021
Hi,
How can I create app from main script along with their subscript ?
I know for creating app, it should be function.
If I make fucntion then the data gets earsed when I call subscripts in main-function.
Please suggsest alternative if any available,
Regards
0 Kommentare
Akzeptierte Antwort
Thomas Fournier
am 16 Aug. 2021
The data you want to keep between function shoud be defined as properties of your app,
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/713292/image.png)
To refer to this variable later in your code, you have to call it app.'variable_name'
0 Kommentare
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Develop Apps Using App Designer 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!