How to implement the inputted value to a function?

1 visualización (últimos 30 días)
Nikos Korobos
Nikos Korobos el 10 de Mzo. de 2022
Comentada: Nikos Korobos el 18 de Mzo. de 2022
Hello everyone, totally beginner question
I have created this spiner(for Pace) below via the App Designer with some values to be inputed.
How could I implement the inputted value to the function below?
Attatched the GUI code so far
Thanks in advance
  1 comentario
Nikos Korobos
Nikos Korobos el 10 de Mzo. de 2022
I found out about num2string but I need the value to remain as a number not text

Iniciar sesión para comentar.

Respuesta aceptada

Cris LaPierre
Cris LaPierre el 11 de Mzo. de 2022
It's already implemented for you. The template code already captures the current value in the variable changingValue.
The spinner object is passed into the function via the event structure. You access the value property using event.Value. You could also use app.PaceSpinner.Value.

Más respuestas (0)

Categorías

Más información sobre Signal Processing Toolbox en Help Center y File Exchange.

Community Treasure Hunt

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

Start Hunting!

Translated by