how to put a task that u repeat in some functions of a GUI, with one function

1 Ansicht (letzte 30 Tage)
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.

Antworten (1)

Subhadeep Koley
Subhadeep Koley am 7 Nov. 2019
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.
See detail steps to create helper functions here.

Kategorien

Mehr zu Develop Apps Using App Designer finden Sie in Help Center und File Exchange

Produkte


Version

R2019b

Community Treasure Hunt

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

Start Hunting!

Translated by