Effacer les filtres
Effacer les filtres

How to implement the inputted value to a function?

1 vue (au cours des 30 derniers jours)
Nikos Korobos
Nikos Korobos le 10 Mar 2022
Commenté : Nikos Korobos le 18 Mar 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 commentaire
Nikos Korobos
Nikos Korobos le 10 Mar 2022
I found out about num2string but I need the value to remain as a number not text

Connectez-vous pour commenter.

Réponse acceptée

Cris LaPierre
Cris LaPierre le 11 Mar 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.

Plus de réponses (0)

Catégories

En savoir plus sur Signal Processing Toolbox dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by