Appdesigner: Execute callback from m file

2 views (last 30 days)
Joshua
Joshua on 15 Aug 2022
Commented: Joshua on 16 Aug 2022
Hi - does anyone have any idea how callbacks in appdesigner can be executed from an m file? I could not find an obvious solution. Thanks Joshu

Answers (1)

dpb
dpb on 15 Aug 2022
What do you mean, specifically?
appdesigner calls a given callback function; that function can call anything, m-file or not; but the callback function itself has to be the specific one referenced to in the app.
You can't delete the callback function body automagically created when you define there to be a callback function and substitute a free-standing m-file function for it, if that is what you mean -- but you don't need to since you can immediately call whatever m-file that would be.
  4 Comments
Joshua
Joshua on 16 Aug 2022
thanks for your help - will look into this.

Sign in to comment.

Community Treasure Hunt

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

Start Hunting!