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
MATLAB Articles
Page 2 of 13
Implementation of Fourier Series up to \"n\" Harmonics in MATLAB
In mathematics, the Fourier series up to "n" harmonics is a technique used to approximate a periodic function through the sum of sine and cosine functions. We can implement the Fourier series up to "n" harmonics in MATLAB programming. Before discussing this implementation, let us first get an overview of Fourier series up to "n" harmonics. What is Fourier Series up to "n" Harmonics? In mathematics, the Fourier series is a method of expressing a periodic function as a sum of sinusoidal functions (sine and cosine functions). The Fourier series up to "n" harmonics is a way of approximating a ...
Read MoreImplementation of Cayley-Hamilton\'s Theorem in MATLAB
In linear algebra, there is a fundamental theorem caled Cayley-Hamilton’s Theorem that is used to establish a relation between a square matrix and its characteristic equation. Read this article to learn the implementation of the Cayley-Hamilton’s theorem in MATLAB programming. Let's start with an overview of Cayley-Hamilton’s theorem. What is Cayley-Hamilton’s Theorem? In linear algebra, the Cayley-Hamilton’s theorem is a fundamental theorem that is used to establish a relationship between a square matrix and its characteristic equation. In other words, according Cayley-Hamilton’s theorem, a square matrix must satisfy its own characteristic equation. Explanation Consider a square matrix A of the ...
Read MoreImage Sharpening Using Laplacian Filter and High Boost Filtering in MATLAB
In MATLAB, there are two commonly used image processing techniques namely, "Laplacian Filter" and "High Boost Filtering" that are used to sharpen an image. The Laplacian filter is mathematical operator used to sharpen an image in digital image processing. While, the high boost filtering is an image sharpening technique in digital image processing. In this tutorial, I will explain the process of image sharpening using Laplacian filter and high boost filtering in MATLAB. Let’s start with the basic introduction of Laplacian filter and high boost filtering. What is Laplacian Filter in MATLAB? In MATLAB, the Laplacian filter is mathematical tool ...
Read MoreHow to Swap Elements in a matrix Using MATLAB?
A matrix is a structure which is used to store and work with numeric data. Each value stored in a matrix is referred to as an element. Sometimes, we need to swap or change the position of these elements within the matrix. We can use MATLAB to perform this task i.e., swapping the elements of the matrix. In this tutorial, I will explain how we can use MATLAB to swap the elements in a matrix. Swap Elements in a Matrix MATLAB is a powerful tool that can be used to manipulate matrices. It provides various methods to swap the elements ...
Read MoreHow to Select Random Rows from a Matrix in MATLAB?
In MATLAB, we can perform various operations on matrices. One such operation is selecting random rows from a matrix. MATLAB provides several different methods of selecting random rows from a matrix. In this tutorial, I will explain different methods of selecting rows from a matrix randomly using MATLAB. Select Random Rows from a Matrix in MATALB In MATLAB, we have various built-in functions that can be used to randomly select rows from a matrix. The following are some commonly used functions to randomly select rows from a matrix − randperm() Function randsample() Function randi() Function datasample() Function Let ...
Read MoreHow to Round toward Negative Infinity in MATLAB?
Rounding toward negative infinity is a method of rounding a number "N" down to the nearest integer less than or equal to the number "N". This method is also called "flooring". In simple words, rounding a number toward negative infinity is a method of finding the largest integer number which is less than or equal to the given number. For example, consider a number 4.8, when this number is round to negative infinity. Then, it will become 4. This is because, 4 is the largest integer number less than or equal to 4.8. Similarly, if we have a negative ...
Read MoreHow to Remove Salt and Pepper Noise from Image Using MATLAB?
MATLAB is a digital tool that is widely used in image processing, such as image transformation, noise removal from an image, detecting edges, and more. In this tutorial, I will explain how you can remove salt and pepper noise from a digital image using MATLAB. In a digital image, the "salt and pepper noise" is a type of impulse noise that degrade the image quality and cause errors in image processing, analysis, and transmission. Therefore, it is important to remove the salt and pepper noise from the image to minimize the challenges coming to image processing and analysis. Before ...
Read MoreHow to plot a Histogram in MATLAB?
A histogram is a graphical representation of data that shows the frequency distribution of data points. MATLAB provides a built−in function "histogram" to plot the histogram of a data set. What is a Histogram in MATLAB? In MATLAB, the histogram is a graphical method of representing the frequency distribution of a set of data points. It shows the frequency distribution of a data points within a certain interval called bin. In a histogram plot, the intervals or bins are represented over the x-axis and the frequency of data points over the y−axis. In MATLAB, the histogram is an efficient way ...
Read MoreHow to Find the Position of a Number in an Array in MATLAB?
The position of a number in an array or a matrix is also known as index of that number within the array or matrix. In MATLAB, arrays are one−indexed that means the index of the first element of the array will be "1", the index of the second element will be "2", and so on. To find the position of a number in an array, MATLAB provides various methods. Here, we will cover two commonly used methods, they are: Using "find" function. Using a loop mechanism. Let us explore these methods of finding the position of a number ...
Read MoreHow to Find Indices and Values of Nonzero Elements in MATLAB?
MATLAB is a powerful tool to perform operations and calculations related to arrays and matrices. In MATLAB, an array or a matrix is a type of data structure used to store numeric data. Each value stored in an array or matrix is termed as an element. The position of an element within an array or matrix is referred to as the index of the element. MATLAB provides a built−in function "find" which enable us to find the indices and values of non−zero elements in a given array or matrix. However, in MATLAB, we can also find the values and indices ...
Read More