我的MATLAB使用不了滑动条,应该是缺少uislider函数,但是不知道怎么修补
显示 更早的评论
运行的代码挺简单的,就三行:
fig = uifigure;
pnl = uipanel(fig);
sld = uislider(pnl,'Position',[50 50 150 3]);
但是运行不出来,会报错:

回答(1 个)
埃博拉酱
2022-4-24
0 个投票
uislider是R2016a推出的函数,你是不是MATLAB版本太老?
如果版本没问题就是安装损坏了,卸载MATLAB重装吧
类别
在 帮助中心 和 File Exchange 中查找有关 启动和关闭 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!