I am trying to generate a grid of pushbuttons in a figure. I will prompt the user, and get a numeric value of the grid size, and then generate said grid. For example, if the user enters 25, the script will generate 25 push buttons in a 5x5 grid. The user will then select one or more of these buttons, and then once another button ('GO' for example) is pressed, I will get the values of the numbers in the grid to use for another purpose. Anyone know how the best way to go about this? Searching hasnt gotten me too far, so any help would be greatly appreciated.
Also, I am using Matlab 2015b.