GUIDE - Control tables by slider
3 次查看(过去 30 天)
显示 更早的评论
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?
0 个评论
回答(2 个)
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.
另请参阅
类别
在 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!