Appdesigner: Execute callback from m file

조회 수: 13 (최근 30일)
Joshua
Joshua 2022년 8월 15일
댓글: Joshua 2022년 8월 16일
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

답변 (1개)

dpb
dpb 2022년 8월 15일
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
dpb
dpb 2022년 8월 16일
What you're looking for here is <Events-sending-and-responding-to-messages>. I've never explored doing such so know nothing specific about using them.
Joshua
Joshua 2022년 8월 16일
thanks for your help - will look into this.

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 Environment and Settings에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by