how to use "range" in uislider

3 次查看(过去 30 天)
Luca Re
Luca Re 2024-5-17
评论: Stephen23 2024-5-20
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 :
  9 个评论
Luca Re
Luca Re 2024-5-19
编辑:Luca Re 2024-5-19
From my knowledge it's a bit difficult.. Here I made a reply to my problem (matlab_test.mlapp).. Can you edit the attached file with the solution? Thank you
Stephen23
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
Voss 2024-5-18
  2 个评论
Luca Re
Luca Re 2024-5-18
编辑:Luca Re 2024-5-18
it's not correct..
I want double button to fix limit
see pics above
Voss
Voss 2024-5-18
s = uislider(fig,"range","Limits",[1 50]);

请先登录,再进行评论。

类别

Help CenterFile 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!

Translated by