GUI Based Tables in MATLAB Last Updated : 28 Apr, 2025 Comments Improve Suggest changes Like Article Like Report GUI tables in MATLAB are graphical user interface that allow users to display and manipulate tabular data.They are used to create interactive applications that require data to be displayed in a table format. GUI tables in MATLAB typically consist of columns and rows , with each column representing a variable or field and each row representing a record or instance of the data. The user can interact with the table by selecting cells, sorting and filtering data, editing cell values, and performing other operations. Graphical User Interface in MATLAB can be customized to suit specific application requirements , including changing column widths, hiding or showing columns, changing cell color and fonts and setting callbacks for user events , they are commonly used in scientific and engineering applications, financialanalysis, and data visualization. In this article, we will create GUI based Tables in MATLAB. GUI means is graphical user interface which means interface which display on screen and user can see in this article we will create a GUI tables by using MATLAB. Using the 'uitable' FunctionThis is the very easiest way to create GUI-based table, first we created a figure using fig and than we defined column names and also data like languages and key and then we filled data by define new data and then we created uitable by using uitableand then we define the table width, height, position by using table.position method. Example 1: Matlab % Code % Code % Create a figure window fig = figure(); % Define column names and data colNames = {'Language', 'Key'}; data = {'Java', 1; 'C++', 2;'PHP',3; 'Python', 4;'Mysqli',5; 'Django', 6;'Kotlin',7;'MATLAB', 8;'R',9}; % Create a uitable in the figure window table = uitable(fig, 'Data', data, 'ColumnName', colNames); % Set table properties table.Position = [80 80 200 200]; Output : Scrolling Table In this method we created a table which we can scroll upto left to right for see data for this we are using uitable function in which we declare data magic(5) and we first declare column name like column1, column2 and so on and then we created an push btn and then we print our table by using another function printtable.this way we can create scrolling table and also we can change the table width height by changing the position value in out code. Example 2: Matlab % Code function guiTable % Create the figure and table fig = figure('Position',[100 100 400 300]); t = uitable(fig,'Data',magic(5),'ColumnName', {'Column 1','Column 2','Column 3', 'Column 4','Column 5'}, 'Position',[20 20 360 150]); % Create the push button btn = uicontrol('Style','pushbutton','String', 'Print Table','Position',[150 280 100 20], 'Callback',@printTable); % Define the push button callback function function printTable(~,~) disp(get(t,'Data')) end end Output: Application of GUI Based Table in MATLAB Here are five different applications of GUI-based tables in MATLAB: Data AnalysisExperiment Control.Financial ApplicationsEducationQuality Control Comment More infoAdvertise with us Next Article GUI Based Tables in MATLAB prathamsahani0368 Follow Improve Article Tags : Software Engineering MATLAB-GUI Similar Reads Tables in MATLAB Table is an array data type in MATLAB that stores column-based or tabular data of same or different types. A table stores each column-oriented data under a variable name (column name). These table columns can have different data types in each however, the number of data points in every column must b 2 min read Timetables in MATLAB Timetables are a type of tables in MATLAB that store a timestamp corresponding to each row. Similar to tables, timetables can store column-oriented data under a variable name (column name), where every variable has same number of rows. All the functions of a table work with timetables as well along 2 min read 3D Plots in MATLAB In MATLAB, we can plot different types of modules like 2d plotting and 3d plotting. In this article, we will see what are the various types of 3D plotting. Mesh Plot: A mesh plot is a 3d surface that creates different types of meshes for different types of expression. To create mesh we have to give 3 min read Simple GUI Calculator in MATLAB MATLAB is a powerful programming language that makes working with different mathematical equations easier. It is widely preferred by engineers and scientists. In this article, we will see, how to build a GUI-based simple calculator in MATLAB, which will take input and will return a value. So let's g 3 min read 2D Line Plot in MATLAB '2D' stands for 2-dimensional and a 2D line is a line that is moved in 2-dimensions. A line in 2D means that we could move in forward and backward direction but also in any direction like left, right, up, down. In MATLAB we have a function named plot() which allows us to plot a line in 2 directions. 4 min read Function Table in Math A function table in math is a table used to organize and display the relationship between inputs (often called x values or independent variables) and their corresponding outputs (often called y values or dependent variables) in a function. The table shows how a specific function transforms one value 8 min read 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 User defined function in MATLAB Functions let you do a specific task. User defined functions are the functions created by the users according to their needs. This article explains how the user defined function in MATLAB is created. Syntax : function [a1,...,an] = func(x1,...,xm) func is the function name a1,...,an are outputs x1,. 2 min read Normalize Data in MATLAB Data Normalization is a technique in statistical mathematics that converts the entire data into a specified range or scale or normalizes it using different methods such as by computing its z-score. There is no specific definition of normalization but, it has various meanings depending on the user's 2 min read Text Formatting in MATLAB In the real-world data can be any form. This data may be in binary, numeric, text, array, and so on. And this data can be converted into text. In Matlab, the text can be formatted using a formatting operator along with formatting functions such as sprintf, numstr, fprintf, compose. These functions/o 4 min read Like