Matlab is a powerful math tool for matrix calculations and any other math function you need. Matlab also has the ability to form windows as applications with its own programming language.
Step 1. Open the Matlab program and wait for it to load
Step 2. Click on “Matlab” on the platform to expand the list and then click on “GUIDE (GUI Builder)”
If you can't see the platform, click View, followed by Launchpad. The GUI generator will appear.
Step 3. Click the "Ok" button on the left side of the window
That will allow you to drag and drop button.
Step 4. Move the mouse anywhere in the gray area in the center of the window
Step 5. Click the button and hold the mouse down dragging it until this shape is the size you want
Step 6. Release the mouse and you will see a button appear
Step 7. Double click the button you created
An administrator will appear.
Step 8. Locate the "string field" and click in the area to the right of it, type "Say Hello."
Now change the label to "button".
Step 9. Find the button on the left called “txt” and follow the same instructions from step 8
Step 10. Now click on the file then save your work
This will also open a code for your program.
Step 11. Locate the line of code in the code editor that says “function varargout = pushbutton1_Callback (h, eventdata, handles, varargin)”
This is the return function. Here we will make the text in the textbox change when the user clicks the button.