Open In App

Create a Simple App Using GUIDE in MATLAB

Improve
Improve
Like Article
Like
Save
Share
Report

 MATLAB is a (Matrix-Laboratory), matrix-based programming language platform that is majorly used to solve math work and real-time problems. it’s specifically designed for engineers and scientists to analyze and design systems. And also capable to solve real-time problems with some histogram equalization, and graphical representation.

So in this article, we will learn how to create a Simple app using the GUIDE in MATLAB. Before that, we will understand the required term as- 

What is GUIDE in MATLAB? 

GUIDE stands for (Graphical User Interface Development Environment). It’s an open UI (user interface) design environment that provides some functionality or tool to design user interfaces and create custom apps. the tools used to create any custom app simplify the process of laying out and programming UIs.

GUI allows interaction between a human and a computer program. the GUIDE is mainly used to test different GUIs’ designs and layouts. it simplifies the GUI creation process. Some specific kinds of GUIs may require custom code to achieve the desired functionality.

Steps for Creating Applications Interactively Using GUIs  

The MATLAB App Designer is an interactive environment that combines the two main tasks of application creation, placing visual components, and programming application behavior. follow these below steps and create the interactive GUIs. 

Step 1: Click on the NEW in and create the App.

Step 2: After that, you will see the layout as you can see in the below image.

 

Step 3: Now you can choose any layout and design your app easily, where you want to make your GUI custom apps.

Step 4: So now will use the 2-Panel App with Auto-Reflow. open it and add the component from the component library. when you will open the 2-Panel App with Auto-Reflow you will get this type of interface.

 

Step 5: So now we will add the component one by one using the drag-and-drop interface. first, we will add the radio button, switch to a button, and graph. after that, you have to simply run the app file. 

 

Now let’s take an example to create a simple App using the GUIDE in MATLAB.

Example 1: So firstly we will take create the simple GUI using msg box in MATLAB. after running the code you will get the window that shows the output.

Matlab




% Code.
% --- Executes on button
% press in pushbutton1.
function pushbutton1_Callback(hObject, eventdata, handles)
% hObject    handle to pushbutton1 (see GCBO)
% eventdata  reserved - 
% to be defined in a future version of MATLAB
% handles    structure with 
% handles and user data (see GUIDATA)
  
msgbox('Hello, world!');


Output : 

 


Last Updated : 09 Mar, 2023
Like Article
Save Article
Previous
Next
Share your thoughts in the comments
Similar Reads