- In the “Component Browser” section on the right of the Onramp window, click on the “app.GridSizeSpinner” component under “myapp >app.UIFigure” (the name of the spinner might be different based on the name you give to the spinner).
- Click on the “Callbacks” tab.
- For the “ValueChangedFcn” select the “NewMazeButtonPushed” from the drop-down menu.
- Now, switch to “Code View” and add the following code:

