How can I creat buttons in a matrix?

5 vues (au cours des 30 derniers jours)
Renato Pereira
Renato Pereira le 30 Juin 2017
I'm trying to do a GUI that when user select the number of rows and columns they want to create (just like a matrix), the GUI appears with the matrix but with buttons. How can I create this?
  1 commentaire
Adam
Adam le 30 Juin 2017
Just create a figure and add the buttons, using whatever maths you want to define how large and how far apart they should be and put this in the 'Position' property of the buttons.

Connectez-vous pour commenter.

Réponses (1)

Image Analyst
Image Analyst le 30 Juin 2017
Use GUIDE to place your buttons in a grid/array. Use a groupbox if you want them to go down and stay down and the others popup (like a blender).

Catégories

En savoir plus sur MATLAB dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by