Explained: Slider GUI [MATLAB]

preview_player
Показать описание
This video explains how to code a slider in a MATLAB GUI. It also shows how to change the 'Min', 'Max', and 'Value' arguments to alter the range of the slider.
Рекомендации по теме
Комментарии
Автор

Could you please explain how to add a play button so that the slider ? If the slider is too long it is so difficult to keep pressing the slide to play the content!

aneeshps
Автор

Sorry if i missed it but how do you set the interval for the slider? im thinking its sliderstep in properties hopefully changing the array to 1 by 1 with an interval of 1 since this is what i want...but im not sure thats the right way to do it...

Asabadman
Автор

That was on point buddy, thanks a lot :)

wafflez
Автор

Hey can you please help me out with setting a slider in a way that I can step through multiple images in two axes both a time? A previous and next push buttons would also be good but I'm new to this and I'm having trouble figuring it out! Thank you so much in advance.

daniasharafeddin
Автор

I want to set the slider value like below but when i run the gui it said the slider control can not have slider value outside the Min/Max range.
How do I set the Max and Min value using the handles?


handles.plan_PosA   = plan_PosA
handles.actual_PosA = actual_PosA;

slider1Min = 1;
slider1Max = length(handles.actual_PosA);
slider1Step = [1/(slider1Max - slider1Min), 1/(slider1Max - slider1Min)];

nurshaheeramidi
Автор

well it looks like the definition of 'simplicity' varies from person to person... for me using just get handles is simpler than writing down 2 lines. also this code doesn't work on my 2015b; i used value = get(handles.slider, 'Value') and it shows me the value but not throwing that to static text...

etherlords
Автор

aii thanks bruur, nu krijgen wij een 10tj

NaamWachtwoord