how to use "range" in uislider
3 次查看(过去 30 天)
显示 更早的评论
fig = uifigure;
s = uislider(fig,"range",1:50);
Error using uislider
Unrecognized property range for class Slider.
Error in untitled6 (line 2)
s = uislider(fig,"range",1:50);
i want this :
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1697891/image.png)
9 个评论
Stephen23
2024-5-20
From my knowledge it's a bit difficult."
Certainly it would be quite fiddly to implement.
A simpler approach is to have some fixed (i.e. unmoving) e.g. UICONTROL displaying the values.
回答(1 个)
Voss
2024-5-18
s = uislider(fig,"Limits",[1 50]);
https://www.mathworks.com/help/matlab/ref/matlab.ui.control.slider-properties.html
2 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Specifying Target for Graphics Output 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!