Range Slider for MALTAB app designer
Version 1.0.0 (88,6 ko) par
Peyman Mostafaei
A range slider with two knobs with and without knobs limitation
These codes creates range slider with two knobs using Axes and two rectangular ROIs (as knobs) in MATLAB app designer.
Both apps use WindowButtonDown function in the figure to find any of the knobs have been clicked. Then the apps change to WindowButtonMotion function in the figure to track the mouse movement. At the end, the apps use WindowButtonUp in the figure to stop the dragging.
There are two different apps presented here. One where one knob (red knob in the app) is smaller or equal than other knob (blue in the app) and the other where there is no limitation on the knob.
In the case of limitng knobs, there is a parameter that controls their minimum distance which can be changed in the code.
Citation pour cette source
Peyman Mostafaei (2025). Range Slider for MALTAB app designer (https://fr.mathworks.com/matlabcentral/fileexchange/134112-range-slider-for-maltab-app-designer), MATLAB Central File Exchange. Extrait(e) le .
Compatibilité avec les versions de MATLAB
Créé avec
R2022a
Compatible avec les versions R2020a à R2023b
Plateformes compatibles
Windows macOS LinuxTags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Découvrir Live Editor
Créez des scripts avec du code, des résultats et du texte formaté dans un même document exécutable.
| Version | Publié le | Notes de version | |
|---|---|---|---|
| 1.0.0 |
