GUIDE - Control tables by slider

6 visualizaciones (últimos 30 días)
Ricardo Gutierrez
Ricardo Gutierrez el 26 de En. de 2017
Comentada: Adam el 27 de En. de 2017
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?

Respuestas (2)

Geoff Hayes
Geoff Hayes el 26 de En. de 2017
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 comentario
Ricardo Gutierrez
Ricardo Gutierrez el 27 de En. de 2017
I did not understand, thank you anyway.

Iniciar sesión para comentar.


Ricardo Gutierrez
Ricardo Gutierrez el 27 de En. de 2017
Geoff Hayes,
The function "respondToContSlideCallback" how is it defined? Does this need any control?
  1 comentario
Adam
Adam el 27 de En. de 2017
The definition is in the same post of the same link above!

Iniciar sesión para comentar.

Categorías

Más información sobre Migrate GUIDE Apps en Help Center y File Exchange.

Community Treasure Hunt

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

Start Hunting!

Translated by