uilabel(parent)
Matlab also provides the option to pass a custom window as the parent of the component.
Example:
Matlab
% MATLAB code for Uilabel(parent) demonstration. % create a figure fig = uifigure; % create a label and pass the figure as parent label = uilabel(fig); |
Output:
Label component in MATLAB GUI
Matlab is a numeric computing environment that comes with its own programming language. It specializes in technical computing in areas like Science, Engineering, and many others. Matlab also provides the ability to create GUI applications by simply using its functions for various GUI components.
In this article, we will learn about the Label component, how to create one, and its important properties.