How to implement the inputted value to a function?

1 view (last 30 days)
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 Comment
Nikos Korobos
Nikos Korobos on 10 Mar 2022
I found out about num2string but I need the value to remain as a number not text

Sign in to comment.

Accepted Answer

Cris LaPierre
Cris LaPierre on 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.

More Answers (0)

Categories

Find more on Signal Processing Toolbox in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!