MATLAB Articles

Page 3 of 13

How to extract numbers from cell array in MATLAB?

Manish Kumar Saini
Manish Kumar Saini
Updated on 10-Oct-2023 442 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
Manish Kumar Saini
Updated on 10-Oct-2023 5K+ 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
Manish Kumar Saini
Updated on 10-Oct-2023 506 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
Manish Kumar Saini
Updated on 10-Oct-2023 438 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
Manish Kumar Saini
Updated on 10-Oct-2023 736 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
Manish Kumar Saini
Updated on 10-Oct-2023 909 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
Manish Kumar Saini
Updated on 10-Oct-2023 727 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

Edge detection using first derivative operator in MATLAB

Manish Kumar Saini
Manish Kumar Saini
Updated on 10-Oct-2023 374 Views

In digital image processing, edge detection is a process used to identify the boundaries of objects within a digital image. We have various image processing techniques to detect edges in an image, but in this tutorial, we will learn the edge detection using first derivative operator in MATLAB. What is Edge Detection in MATLAB? MATLAB is an efficient tool to perform complex image processing tasks. One such task is the edge detection, which is nothing but a process of detecting boundaries of objects in an image. In an image, an edge of an object is typically the region where ...

Read More

Linear Filtering without using Imfilter Function in MATLAB

Manish Kumar Saini
Manish Kumar Saini
Updated on 09-Oct-2023 501 Views

In MATLAB, "linear filtering" is a technique used to apply a linear filter to a digital image. The fundamental principle behind the working of linear filtering is convolution. This article is meant for explaining the concept of linear filtering and how to perform linear filtering without using the "imfilter" function in MATLAB. What is Linear Filtering? In digital image processing, the process of applying a linear filter (also called convolution kernel) to a digital image is called linear filtering. The working of linear filtering is based on the concept of convolution. In the process of linear filtering, a convolution ...

Read More

How to reverse a string in MATLAB?

Manish Kumar Saini
Manish Kumar Saini
Updated on 09-Oct-2023 559 Views

MATLAB provides various built-in functions to reverse a string of text. In this tutorial, I am going to explain all the commonly used methods to reverse a string in MATLAB. Reverse a String Using "reverse" Function in MATLAB There is a built-in function "reverse" in MATLAB that we can use to reverse a string. Syntax reversed_string = reverse(string); The steps involved in reversing a string using the "reverse" function are given below − Step (1) − Create a string of text. Step (2) − Call the "reverse" function to reverse the string. Step (3) − Display the ...

Read More
Showing 21–30 of 124 articles
« Prev 1 2 3 4 5 13 Next »
Advertisements