Borrar filtros
Borrar filtros

Calling the code behind PushButton Pressed Event

2 visualizaciones (últimos 30 días)
Jason
Jason el 27 de Ag. de 2020
Comentada: Jason el 4 de Jun. de 2024
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
Jason
Jason el 4 de Jun. de 2024
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 Interactive Control and Callbacks en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by