How to implement the inputted value to a function?

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

I found out about num2string but I need the value to remain as a number not text

댓글을 달려면 로그인하십시오.

 채택된 답변

Cris LaPierre
Cris LaPierre 2022년 3월 11일

1 개 추천

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.

추가 답변 (0개)

카테고리

질문:

2022년 3월 10일

댓글:

2022년 3월 18일

Community Treasure Hunt

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

Start Hunting!

Translated by