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

回答 (1 件)

Kevin Holly
Kevin Holly 2022 年 7 月 29 日

0 投票

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

カテゴリ

ヘルプ センター および File ExchangeDevelop Apps Using App Designer についてさらに検索

製品

リリース

R2020a

質問済み:

2022 年 7 月 28 日

回答済み:

2022 年 7 月 29 日

Community Treasure Hunt

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

Start Hunting!

Translated by