changing uislider position by script
Mostrar comentarios más antiguos
Hi everyone,
I'm new in using matlab gui,
I found that the function "uislider" can only show horizontal slider no matter what position I tryed.
Is there any ways to change slider to vertical?
Here is a simple script below.
clc;
clear;
close all;
fig = uifigure('Position',[100 100 350 275]);
cg=0;
sld = uislider(fig,...
'Position',[ 100 100 100 100],...
'ValueChangingFcn',@(sld, event) sliderMoving(event,cg));
1 comentario
Borshin Chang
el 19 de Jun. de 2020
Respuestas (1)
Tommy
el 19 de Jun. de 2020
sld = uislider(fig,...
'Orientation', 'vertical',...
'Position',[ 100 100 3 100],...
'ValueChangingFcn',@(sld, event) sliderMoving(event,cg));
Categorías
Más información sobre MATLAB en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!