Article Categories
- All Categories
-
Data Structure
-
Networking
-
RDBMS
-
Operating System
-
Java
-
MS Excel
-
iOS
-
HTML
-
CSS
-
Android
-
Python
-
C Programming
-
C++
-
C#
-
MongoDB
-
MySQL
-
Javascript
-
PHP
-
Economics & Finance
Programming Articles
Page 1753 of 2547
How to iterate a loop with index and element in Swift?
In this article, you will learn how to iterate a collection using a loop with an index and element in the Swift language. In this article, you will learn how to use the enumerated() method. In Swift, you can use the enumerated() method to iterate over the elements of a collection and access both the index and the element in each iteration of the loop. enumerated() enumerated() is a method in Swift that allows you to iterate over the elements of a collection, such as an array or a dictionary. It returns a series of tuple elements, each of which ...
Read MoreHow to check if an element is in an array?
This article will explain how you can check if an element exists in an array or not in the Swift language. There are several ways to check if an element is in an array in Swift − Using the contains method The contains(_:) method returns true if an array contains the target element. This method can only be used with arrays whose elements conform to the Equatable protocol. Here is an example where we use contains with an array of strings. String conforms to the Equatable protocol, so we can use the contains method here. Algorithm Step 1 - ...
Read MoreGray Level Co-occurrence Matrix in MATLAB
In digital image processing, the gray level co-occurrence matrix, also known as GLCM, is a statistical method employed for holding the spatial relationship between pairs of pixels in a digital image. The gray level co-occurrence is a method of representing the way in which different combinations of pixel intensities are arranged within the image. It is mainly used to specify the texture property of an image and provide the information about the patterns, variations, and structures occurring in the pixel values within spatial regions of the image. What is Gray Level Co-Occurrence Matrix? As stated above, the gray level co-occurrence ...
Read MoreRandomly Shuffle Rows in MATLAB Matrix
MATLAB is a great tool to process matrices. It provides a large number built-in functions and processing methods that we can use to manipulate our matrices just by writing a small piece of MATLAB codes. Such an operation that we can perform on matrices in MATLAB is random shuffling of rows of a matrix. In this tutorial, I will explain how you can randomly shuffle rows of a matrix using MATLAB. Randomly Shuffle Rows of a Matrix in MATLAB MATLAB is a complete solution to manipulate matrices using computers. In MATLAB, we can very easily shuffle rows of a matrix ...
Read MoreGray Scale to Pseudo Color Transformation in MATLAB
MATLAB provides an easy and efficient way of processing images. In this tutorial, we will explore how to perform gray scale to pseudo color transformation in MATLAB. In MATLAB, the gray scale to pseudo color transformation is an image processing technique which is used to create a visually appealing image by mapping the intensity values of the gray scale image to a specific color. If we want to convert a gray scale image to a pseudo color image using MATLAB, then we can use a built-in function in MATLAB, which is ‘colormap’ and a color map matrix. Now, let us ...
Read MoreHow to Create an Image Component in MATLAB?
In MATLAB, we can create various types of GUI components like EditField, buttons, hyperlink, image, etc. In this tutorial, I will explain how can you create an image component in MATLAB programming. But before that let us first get an overview of image component in MATLAB. What is Image Component in MATLAB? In MATLAB, Image Component is a GUI (Graphical User Interface) component used to show an image in a MATLAB application. This component is widely used in applications where it is required to handle images like in image processing and analysis. To create an image component, MATLAB provides a ...
Read MoreHow to Append Data to a File in MATLAB?
In MATLAB, appending is nothing but the process of adding data to a text file which already exists in the memory or workspace. In MATLAB, there is a built-in function 'fprintf' which is used to append or add data to a file. The 'fprintf' function allows users to add or writer formatted data to a text file. By default, this function adds the data to the end of the text file. Let us now see the step-by-step process to append data to a file in MATLAB. How to Append Data to a File? The step-by-step process to append ...
Read MoreHow to add White Gaussian Noise to Signal using MATLAB?
A type of noise signal which has a flat power spectral density (PSD) across all frequencies is referred to as white gaussian noise or white noise. In this tutorial, I will explain how to add white gaussian noise to signal using MATLAB. But before that let get a brief overview of white gaussian noise. What is White Gaussian Noise? A type of noise signal which has equal energy at all frequencies within a specified frequency range is termed as white gaussian noise. Therefore, white gaussian noise has a flat power spectral density (PSD) across all frequencies. In the case of ...
Read MoreHow to Add an EditField Component in MATLAB?
MATLAB allows us to create graphical user interface (GUI) applications without proper knowledge of coding. It has a built-in component library containing a wide range of GUI components such as buttons, edit fields, numeric edit fields, hyperlinks, and many more. In this tutorial, I will explain how you can create an EditField component in MATLAB. What is an EditField Component in MATLAB? In MATLAB, the EditField component is a graphical user interface (GUI) component which is used to allow your users to input and edit text or number. The EditField component is one the fundamental GUI components used to build ...
Read MoreHow Spatial Resolution of a Digitized Image is Different from Brightness Resolution in MATLAB?
MATLAB is an efficient tool to process and manipulate digital images. In MATLAB, a digital image is specified as a two-dimensional matrix where the elements of the matrix represent the pixel intensity of the image. When the pixel intensity of a digital image is represented as a 2D matrix, then it is known as spatial domain. For any digital image specified in 2D matrix form or spatial domain, there is a term 'spatial resolution' which describes how sharply we can see the objects in the image. Also, there is another term 'brightness resolution' which describes pixel intensity of the image. ...
Read More