GUIDE - Control tables by slider

조회 수: 6 (최근 30일)
Ricardo Gutierrez
Ricardo Gutierrez 2017년 1월 26일
댓글: Adam 2017년 1월 27일
I want to program data entry through tables, which are controlled by two GUI-Sliders (I use Guide controls). The first Slider defines the total number of elements available and the second Slider defines or number of subelements, for that, every time I change element, the table must be emptied to enter with the new data, in that sense, someone can give me one idea?

답변 (2개)

Geoff Hayes
Geoff Hayes 2017년 1월 26일
Ricardo - you will need to add two callbacks to each of your sliders so that when the user moves the slider, the callback will fire. Within this callback, you would update/reset the table. See https://www.mathworks.com/matlabcentral/answers/153278-discretizing-matlab-slider-gui for an example of a continuous value change slider callback.
  댓글 수: 1
Ricardo Gutierrez
Ricardo Gutierrez 2017년 1월 27일
I did not understand, thank you anyway.

댓글을 달려면 로그인하십시오.


Ricardo Gutierrez
Ricardo Gutierrez 2017년 1월 27일
Geoff Hayes,
The function "respondToContSlideCallback" how is it defined? Does this need any control?
  댓글 수: 1
Adam
Adam 2017년 1월 27일
The definition is in the same post of the same link above!

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 Migrate GUIDE Apps에 대해 자세히 알아보기

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by