dynamic range of slider in MATLAB GUI
조회 수: 4 (최근 30일)
이전 댓글 표시
hey, if i want the slider range to be controlled by an input in the edit text, can i do that
댓글 수: 0
채택된 답변
Fangjun Jiang
2011년 6월 21일
Yes, you can.
Range=get(handleEdit,'string');
set(handleSlider,'Max',str2num(Range));
댓글 수: 0
추가 답변 (1개)
Walter Roberson
2011년 6월 21일
Yes. Your callback function for the edit uicontrol can set() the properties of the slider.
댓글 수: 0
참고 항목
카테고리
Help Center 및 File Exchange에서 Migrate GUIDE Apps에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!