필터 지우기
필터 지우기

Calling the code behind PushButton Pressed Event

조회 수: 4 (최근 30일)
Jason
Jason 2020년 8월 27일
댓글: Jason 2024년 6월 4일
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일
app.GetSingleSpectrumButtonPushed(app, event)
You can see a similar answer here.
  댓글 수: 2
Jason
Jason 2020년 8월 27일
Thankyou
Jason
Jason 2024년 6월 4일
Just an update, its actually this that works:
app.GetSingleSpectrumButtonPushed(event)

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

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Entering Commands에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by