How can I increase my slider by one step?
    5 ビュー (過去 30 日間)
  
       古いコメントを表示
    
i want to increment the value of my slider with a one unit step when the user clicks on an arrow at the ends of the scrollbar. For example:
[1:1:80] = (1 2 3 4 5 6 7 8 9....................UNTIL 80)
Can I do this with the Property Inspector ?????
0 件のコメント
採用された回答
  Image Analyst
      
      
 2015 年 11 月 12 日
        
      編集済み: Image Analyst
      
      
 2015 年 11 月 13 日
  
      In the Property Inspector for the slider, look in the SliderStep property. Make the small step 0.0127 and the large step 0.025.
0 件のコメント
その他の回答 (1 件)
  Stephen23
      
      
 2015 年 11 月 13 日
        
      編集済み: Stephen23
      
      
 2015 年 11 月 13 日
  
      The slider steps are explained in the UIControl Properties documentation. You simply need to divide your desired step length by the range:
step / (rangeMax - rangeMin)
which translates to:
>> 1 / (80 - 1)
ans =  0.012658
3 件のコメント
  Image Analyst
      
      
 2015 年 11 月 14 日
				Yes, ali, please vote for him (like I did) - he's very close to getting enough points to earn full privileges on this forum and your vote will help him get there.
参考
カテゴリ
				Help Center および File Exchange で Low-Level File I/O についてさらに検索
			
	Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!


