Effacer les filtres
Effacer les filtres

Error when using range slider (uislider)

22 vues (au cours des 30 derniers jours)
Riley
Riley le 24 Juin 2024 à 18:39
Réponse apportée : Steven Lord le 24 Juin 2024 à 18:59
I get the error when trying to define a range slider. I copied and pasted the Mathworks example code and get this error. Does anyone no why?
Error using uislider
No value was given for 'range'. Name-value pair arguments require a name followed by a value.
Error in sliderApp (line 3)
sld = uislider(fig,"range");

Réponse acceptée

Steven Lord
Steven Lord le 24 Juin 2024 à 18:59
According to the Version History section of the uislider documentation page, the ability to create a range slider by specifying style as "range" was introduced in release R2023b. This post was tagged release R2022b, meaning the release you're using predates the introduction of that functionality. You'll need to upgrade to release R2023b or later.

Plus de réponses (0)

Catégories

En savoir plus sur Develop Apps Using App Designer dans Help Center et File Exchange

Produits


Version

R2022b

Community Treasure Hunt

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

Start Hunting!

Translated by