How should I code for the max value of a slider?
    2 ビュー (過去 30 日間)
  
       古いコメントを表示
    
In the GUI that I've created, at the first the user should load a video and after that he should be able to visualize any frame of this video. I want to put a slider that it's max should be the number of the frame of the loaded data, but I don't know how can I code for the max value(to be adapted with the number of the frame each time a file is loaded)...
0 件のコメント
採用された回答
  David Sanchez
      
 2013 年 7 月 8 日
        If N_frames is the number of frames:
set(handles.your_slider,'Max',N_frames);
set(handles.your_slider,'SliderStep',[1/N_frames 1])
0 件のコメント
その他の回答 (0 件)
参考
カテゴリ
				Help Center および File Exchange で Audio and Video Data についてさらに検索
			
	Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!