how to put a task that u repeat in some functions of a GUI, with one function
1 回表示 (過去 30 日間)
古いコメントを表示
I would like to know, how i can call the task that i want to define in a function inside of the same script belong to the GUI, for not repeat one code alot of times, if not define this task in a function and call this task with other functions. Thanks, i will be thanksful with examples.
0 件のコメント
回答 (1 件)
Subhadeep Koley
2019 年 11 月 7 日
I assume you are using MATLAB App Designer. You can define helper functions, which can be used by other functions inside or outside your app. There are two types of helper functions: private functions, which you can call only inside your app, and public functions, which you can call either inside or outside your app. Private functions are commonly used in single-window apps, while public functions are commonly used in multiwindow apps.
0 件のコメント
参考
カテゴリ
Help Center および File Exchange で Develop Apps Using App Designer についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!