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
Articles by Manish Kumar Saini
Page 7 of 80
Page-wise matrix multiplication in MATLAB
When we multiply two N-dimensional matrices along each dimension or page of the two matrices, then it is called page-wise matrix multiplication. Page-wise matrix multiplication is mainly performed in the case of 3-dimensional matrices. Go through this tutorial to learn the methods of performing page-wise matrix multiplication using MATLAB. What is Page-Wise Matrix Multiplication? When two N-dimensional matrices are multiplied along each dimension of the two matrices, then this type of matrix multiplication is called the page-wise matrix multiplication. It is basically the element wise multiplication of two 3D matrices along a specific dimension or page in a 3D matrix. ...
Read MoreHow to Use & and && Operators in MATLAB?
In MATLAB, there are various types of operators used to perform different operations. Two such operators are "&" and "&&". The "&" and "&&" operators are the logical operators used to perform element wise logical AND operations. However, they are absolutely different from each other on the basis of their behavior. Read this article to understand the basics of "&" and "&&" operators in MATLAB along with their applications in MATLAB programming. What is & Operator in MATLAB? In MATLAB, the "&" operator is an element-wise operator used to perform logical AND operation between two arrays. If we use ...
Read MoreHow to Use Tex (LaTeX Math Mode) Symbols in Legends and Labels in MATLAB Figures?
MATLAB is a powerful tool to perform various mathematical tasks such as performing operations, plotting charts and figures, manipulating matrices, and more. In digital mathematical tools like MATLAB, there is a typesetting system called "TeX" which is used to communicate and publish mathematical equations and structures. This typesetting system was developed by Donald Knuth. In this tutorial, I will explain the TeX system in LaTeX math mode and the use of TeX symbols in legends and labels in a plot or figure in MATLAB. What is TeX in MATLAB? TeX is a typesetting system used to publish mathematical equations and ...
Read MoreHow to Write Data to Excel Spreadsheets in MATLAB?
MATLAB provides various built-in functions that enable us to write data in the form of tables, matrices, cell arrays, etc. to an Excel file. Read this article to learn the process of writing data to Excel spreadsheets in MATLAB. The following are some commonly used methods to write data to excel spreadsheets using MATLAB − Using the "writetable" Function Using the "xlswrite" Function Using the "writematrix" Function Using the "writecell" Function Let us discuss each of these methods in detail with the help of examples. Using "writetable" Function in MATLAB In MATLAB, the "writetable" is a built-in function ...
Read MoreHow to Validate the Number of Function Arguments in MATLAB?
In MATLAB, the process of ensuring that a function is executed with the correct and expected input and output arguments is termed as validating the number of function arguments. Go through this tutorial to learn how you can validate the number of function arguments in MATLAB. Validate Number of Function Arguments in MATLAB In MATLAB, we can define functions that take a specific number of input and output arguments. We need to ensure that the functions use these input and output arguments properly and also detect errors if any. Therefore, MATLAB provides a way of validating the number of arguments ...
Read MoreIncrease and decrease the brightness of an image in MATLAB
In an image, brightness is an attribute that is interpreted by our eyes based on the amount of light reflected by different regions of the image. Brightness is related to the intensity of light in the image i.e., if an image has more light it will appear brighter. If the image has less light, it will appear as darker. Therefore, brightness influences the visual quality of an image. However, we have various tools like MATLAB to adjust the brightness of the image and enhance its visual quality. In a digital image, the brightness is a controlled by pixel values of ...
Read MoreImplementation 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 More