Found 216 Articles for Data Analysis

How to Find Index of Element in Array in MATLAB?

Manish Kumar Saini
Updated on 10-Oct-2023 17:41:47

472 Views

In MATLAB, an array is a data structure used to store numeric data and information. The values stored in an array is called its element. The position of an element within an array is known as index of the element. The index of element is used to access the element or to provide a reference of the element. In MATLAB, 1−based indexing is used that means the index of the first element of an array is 1. Consider an example array given below, A = [20 35 74 92 60]; In this array, the index of the element '20' ... Read More

How to extract numbers from cell array in MATLAB?

Manish Kumar Saini
Updated on 10-Oct-2023 17:29:34

118 Views

MATLAB is an efficient tool to perform operations on arrays and matrices. In MATLAB, there are several built-in functions available for cell indexing and conversion that can be used to extract numbers from a cell array. Before proceeding further, let us first get an overview of cell array in MATLAB. What is a Cell Array in MATLAB? In MATLAB, a type of data structure that is used to store data of different data types and sizes is called a cell array. In other words, a cell array is a type of data structure that can hold mix of different data ... Read More

How to Export a Matrix as a CSV File in MATLAB?

Manish Kumar Saini
Updated on 10-Oct-2023 17:27:19

1K+ Views

In MATLAB, exporting a matrix as a CSV file is a common process which is used to save the numerical data stored in MATLAB matrix in such a format that can easily processed by using any other types of software. MATLAB matrixes are exported as a CSV file for purposes like data interchange, data backup, data presentation, and more. Hence, if you are working with MATLAB, then it is a common practice to export a matrix as a comma-separated values file or CSV file. What is a CSV File? A CSV file or Comma Separated Values file is a ... Read More

How to Draw a Circle of Given Radius in MATLAB?

Manish Kumar Saini
Updated on 10-Oct-2023 17:12:58

92 Views

MATLAB is a tool that can perform various operations and tasks related to mathematics, engineering, and technology. For example, we can use MATLAB to draw different kind of shapes like circle, square, rectangle, triangle, etc. For this we just need to write a piece of codes in MATLAB programming and input the required parameters like radius of the circle, width and height of the rectangle, etc. This tutorial will explain how you can draw a circle of the specified radius using MATLAB. As we know, in mathematics and geometry, a circle is a basic closed shape formed by joining several ... Read More

How to Detect Face in Image Processing Using MATLAB?

Manish Kumar Saini
Updated on 10-Oct-2023 17:10:41

92 Views

In digital image processing, face detection is a process of identifying face of a person within a digital image or video. It plays vital role in the field computer vision. It is used in various fields such as self−driving cars, facial recognition, face lock systems, emotion analysis, estimation of age, robotics, and many other. MATLAB is an efficient tool to perform image processing, therefore we can use it to detect human face in an image using this software. Before going to learn about MATLAB codes to detect face in an image, let us get a brief overview of face detection ... Read More

How to detect duplicate values and its indices within an array in MATLAB?

Manish Kumar Saini
Updated on 10-Oct-2023 17:07:18

191 Views

In this tutorial, I will explain how to detect duplicate values and its indices within an array in MATLAB. To accomplish this task, we can use various built-in functions in MATLAB. In this article, I will do this using the following two function combinations. unique() and length() unique() and ismember() Before going to implement MATLAB codes, let us first know the steps involved to detect duplicate values in an array. How to Detect Duplicate Values and their Indices in an Array using MATLAB? In MATLAB, the following steps are involved in detecting duplicate values and their indices in ... Read More

How to Decide Window Size for a Moving Average Filter in MATLAB?

Manish Kumar Saini
Updated on 10-Oct-2023 17:02:00

180 Views

In MATLAB, there is a signal processing technique called moving average filter which is used to smooth or filter time series data. The moving average filter computes the average value of data points withing a moving window, and then it utilizes this average value as output data points in the filtered signal. The moving average filter is used to reduce fluctuations and noise in the data points. Before going to learn about the parameters that are used to decide the window size for a moving average filter in MATLAB, let us first learn what is the window size for a ... Read More

How To Create Animated GIF Images in MATLAB?

Manish Kumar Saini
Updated on 10-Oct-2023 16:59:26

161 Views

GIF stands for Graphics Interchange Format. It is a type of image file which is a raster graphics file format, specially used in web and networking applications. The important characteristic of the GIF image format is that it can support both static and animated objects within the image. In this tutorial, I will explain how you can create an animated GIF image using MATLAB. As we know, MATLAB is an efficient tool to perform various scientific and engineering tasks such as image processing, simulation, etc. We can utilize MATLAB to create animated GIF images. What is a GIF Image? A ... Read More

Histogram Equalization in Digital Image Processing

Manish Kumar Saini
Updated on 10-Oct-2023 16:47:04

207 Views

In digital image processing, histogram equalization is a process of enhancing the contrast and improve the visual quality of an image. We can perform histogram equalization using digital tools like MATLAB. This tutorial is meant for explaining the histogram equalization in digital image processing by using MATLAB. But before that let us get a basic overview about histogram equalization What is Histogram Equalization? As mentioned above, histogram equalization is a technique of improving the contrast and visual quality of a digital image. Histogram equalization redistributes the values of pixel intensities throughout the image more uniformly. Overall, histogram equalization is a ... Read More

Edge detection using Prewitt, Scharr and Sobel Operator

Manish Kumar Saini
Updated on 10-Oct-2023 16:39:32

591 Views

In digital image processing, the technique which is used to highlight the borders/boundaries of object withing a digital image is referred to as edge detection. We can use MATLAB to perform this operation. For this, there are several different built-in functions and operators are defined in the MATLAB library. In this tutorial, I will explain three such operators namely, "Prewitt Operator", "Scharr Operator", and "Sobel Operator". All these three operators are commonly used gradient-based edge detection operators available in the MATLAB library. Before going to discuss these operators for edge detection, let us first get a brief overview of ... Read More

Advertisements