Creating Apps Using App Designer in MATLAB
Last Updated :
15 Mar, 2022
MATLAB is a powerful, high-level programming language. Matlab is widely used for designing systems by engineers and scientists and we all know that the best way to represent any idea is by using a simple but effective GUI. Matlab app builder provides you the power to build different apps, to represent your idea in a GUI-friendly manner.
In this article were going to learn how to create any app in Matlab App Designer.
Step 1: You can start working on the MATLAB APP Builder in two ways. Either go to Home>New>App.

Alternatively, for going to the Matlab app builder section, Select Apps from the Menubar, and then go to Design App.

Step 2: A new pop-up is opened. It provides a different layout for stating the app. It has also come examples for a better understanding.

Step 3: You can choose any App option to build a MATLAB app. There are mainly three layouts available on the go. These includes
- Blank App
- 2-Panel App with Auto-Reflow
- 3-Panel App with Auto-Reflow
Step 4: MATLAB consists of various components like:
- Components
- Customizing Components
Components are the pre-built shapes that are designed for particular tasks, and that could be imported to the design tab. In Matlab, the Component Library is situated in the leftmost part of the window.

For importing any component to your design right-click on the component and drag it to the design tab and drop it wherever you want to place it.
By using customizing components you can customize your components as per your requirements, using the Component browser. It is situated in the rightmost part of the App Builder Window. Using the Component Browser you can change information about the component, Font and Color, Interactivity with the user, Position of the component in the design view, CallBack Execution Controls, Parents/Child members, and Identifiers. It also contains the list of the component adopted in your app.

Let's understand more about app-building by making a simple app that calculates both simple and compound interest. For working on this app, create a select a blank workbook. Now the workspace will be opened. You can design the app in the Design tab and code it in the Code tab.
Designing the app takes five edit test fields (numeric), three of them would be editable for principal, rate, and time, whereas two would be non-editable holding the value of Simple Interest and Compound Interest. You can also add a label for a better design view. Also import a button that does the whole calculation and shows the result.

Let's move to the coding part now. For adding the functionality of the Calculate button, add a push-back function. You can add a push-back function by right click on the button and then going to callbacks and then clicking on add a push-back function.
Example:
Matlab
% MATLAB code for simple interest App design
% Button pushed function: CalculateButton
function CalculateButtonPushed(app, event)
amount = app.PrincipalEditField.Value;
rate = app.RateEditField.Value/100;
time = app.TimeEditField.Value;
simple_interest = amount*rate*time;
app.SimpleInterestEditField.Value = simple_interest;
compounded_amount = amount * ((1+rate).^time);
compounded_interest = compounded_amount - amount;
app.CompoundInterestEditField.Value = compounded_interest;
end
Output:
Similar Reads
Create a Simple App Using GUIDE in MATLAB
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 equaliza
3 min read
Creating and Using Figma Components
Creating and using Figma components makes your design process faster and more organized. Components are reusable design elements, like buttons or icons, that you can use across your project. In this article, weâll show you how to create and use Figma components to keep your designs consistent and ef
7 min read
Characters and Strings in MATLAB
In this article, we shall see how to deal with characters and Strings in MATLAB. A data type is an attribute/keyword that specifies the type of data that the object can hold: numeric data or text data. By default, MATLAB stores all numeric variables as double-precision floating-point values. Additio
4 min read
Using Grid Layout to Customize the App Appearance in MATLAB
In this article, we will learn How to Using Grid Layout to Customize the App Appearance in MATLAB Â in this article we will create two app by using the grid layout functionality of MATLAB Â by different methods and we will see how works the grid layout to customize the app appearance in MATLAB. basica
3 min read
User-Defined Classes in MATLAB
In this article, we will understand User-defined Classes in MATLAB. Object-Oriented Programming:The object-oriented program design involves: Identify the components of the system or application that you want to build.Analyzing and identifying patterns to determine what components are used repeatedly
3 min read
Create a Slider Component in MATLAB
A slider component is a graphical interface that allows the end users to select discrete values in the range of the slider component. MATLAB provides built-in functionalities to create slider components in a MATLAB figure component. This article will explain how to create a slider component in MATLA
3 min read
Creating Function in Files in MATLAB
MATLAB is a high-performance language that is used for matrix manipulation, performing technical computations, graph plottings, etc. It stands for Matrix Laboratory. Functions:The function is a set of statements or commands, which take input/s as parameters and return output. We write functions to
2 min read
Create Array of Zeros in MATLAB
MATLAB generally stores its variables in matrix forms, also in array and vector form. Sometimes, we often need a matrix(or array or vector) of zero(s) for some specific operations. We can create a matrix of zero(s) manually or with the help of the in-built function of MATLAB. The in-built function t
5 min read
Create Polar Axes in MATLAB
Polar Axes/Coordinate system is a type of coordinate system which rather than using the traditional cartesian axes with X and Y axes uses polar coordinates, which consists of a magnitude vector (r) and its corresponding angle (\theta    ). The conversion from polar to cartesian coordinate is simple
3 min read
Create Cartesian Axes in MATLAB
By default, the cartesian axes are added to a figure in MATLAB when it is created as a graphical component however, MATLAB provides a function to do the particular job, the axes() function. This function creates cartesian axes in a figure. It is highly useful in cases where multiple cartesian planes
3 min read