Slider values from an specific column appdesigner

Hey guys,
I have this app that will make a plot of force vs cars and will update as you drag the slider. I want the slider to be in MilePost domain (values from the first colum) instead of just be the numbers of rows on the excel file. I will attach the app and the excel file
How can I do that?
Thank you

Answers (1)

See app attached.
You can add the following:
app.MPSlider.MajorTickLabels = categorical(app.Data(app.MPSlider.MajorTicks,1));

Categories

Find more on Develop Apps Using App Designer in Help Center and File Exchange

Products

Release

R2020a

Asked:

on 28 Jul 2022

Answered:

on 29 Jul 2022

Community Treasure Hunt

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

Start Hunting!