Calling the code behind PushButton Pressed Event

Hello, Im using appdesigner and want to call the code thats behind a pushButtom pressed event:
function GetSingleSpectrumButtonPushed(app, event)
%my Code
How would I call this code without pushing the push button

 채택된 답변

Cris LaPierre
Cris LaPierre 2020년 8월 27일
편집: Cris LaPierre 2020년 8월 27일

0 개 추천

app.GetSingleSpectrumButtonPushed(app, event)
You can see a similar answer here.

댓글 수: 2

Jason
Jason 2020년 8월 27일
Thankyou
Just an update, its actually this that works:
app.GetSingleSpectrumButtonPushed(event)

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

추가 답변 (0개)

카테고리

도움말 센터File Exchange에서 Desktop에 대해 자세히 알아보기

질문:

2020년 8월 27일

댓글:

2024년 6월 4일

Community Treasure Hunt

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

Start Hunting!

Translated by