How to Create an Image Component in MATLAB? Last Updated : 28 Apr, 2025 Summarize Comments Improve Suggest changes Share Like Article Like Report MATLAB is an extensive tool that provides various options to its users. Creating image components is one of those tools. MATLAB provides simple functions to create image components. The uiimage function creates a new image component in a new figure by calling on the uifigure function. Usage of uiimage function. Example 1: Matlab % MATLAB Code for image component f = uifigure; img = uiimage(f); Output: This code snippet creates a new figure which can further be used to store images later on. It'll show an empty figure as follows: Â Â Example 2 Now, let us add an image to this figure. Matlab % MATLAB Code f = uifigure; img = uiimage(f); % This takes the image "GFGlogo.jpg" img.ImageSource = "GFGlogo.jpg"; Output: This new image component can be used as an image, logo, etc. in a MATLAB application. Â A simple usage of these image components is by using to open a link when clicked. See the following snippet for a better understanding. Example 3: Matlab % MATLAB Code for image insertion f = uifigure; img = uiimage(f); img.ImageSource = "YVkEGi.jpg"; % Adding url to image img.URL = "https://www.geeksforgeeks.org/"; % Text displayed when hovering over the image img.Tooltip = "Go to GeeksForGeeks"; Output: This will create an image with a hyperlink: Â Conclusion:This article discussed how to create image components in MATLAB and some of its usage. Comment More infoAdvertise with us Next Article How to Create an Image Component in MATLAB? O owl0223 Follow Improve Article Tags : Software Engineering MATLAB-GUI Similar Reads How to Create a Hyperlink Component in MATLAB? MATLAB is a matrix-based computational environment that has its own programming language which is very easy to use and learn. It is used for heavy mathematical concepts, understanding huge data sets with the help of the GUI Graphical User Interface of MATLAB. Â In GUIs, hyperlinked text labels are f 4 min read How to create a textarea component in MATLAB Matlab offers tools for developing GUI applications. It provides functions that can create TextFields, Labels, Buttons, and many more, along with properties to manipulate the components. In this article, we will learn to create a TextArea Component using Matlab. Creating a textarea componentA Text A 4 min read How To Create Animated GIF Images in MATLAB? The GIF stands for ( Graphics Interchanges format ). The purpose of the creation is GIFs images are dynamic. it's a little bit difficult to understand, that's why GIFs don't allows them to show off details and motion and the other secret functionality which are hidden behind the GIFs image. that's w 3 min read How To Add an EditField Component in MATLAB? An EditField component in MATLAB is a user interface control that allows you to input and edit text. It is a useful tool for creating user-friendly GUI (Graphical User Interface) applications. In this article, we will explain how to add an EditField component to a GUI and show some examples of its u 4 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 Like