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

 Respuesta aceptada

Cris LaPierre
Cris LaPierre el 27 de Ag. de 2020
Editada: Cris LaPierre el 27 de Ag. de 2020
app.GetSingleSpectrumButtonPushed(app, event)
You can see a similar answer here.

2 comentarios

Jason
Jason el 27 de Ag. de 2020
Thankyou
Just an update, its actually this that works:
app.GetSingleSpectrumButtonPushed(event)

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

Más información sobre Desktop en Centro de ayuda y File Exchange.

Etiquetas

Preguntada:

el 27 de Ag. de 2020

Comentada:

el 4 de Jun. de 2024

Community Treasure Hunt

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

Start Hunting!

Translated by