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
MATLAB Articles
Found 124 articles
Variables in MATLAB – Definition, Characteristics, and Types
MATLAB is a high-level programming language that supports different kinds of fundamental elements. In MATLAB, there is a fundamental element called variable which is used to store data. A variable has a unique name referred to as identifier. A value is stored in the variable that can be utilized through the variable name. In this article, we will study about basics of variables and their characteristics. Also, we will explore different types of variables and their declaration with the help of examples. What is a Variable in MATLAB? In MATLAB, a variable is one of the programming elements that is used to ...
Read MoreCreating, Concatenating, and Expanding Matrices in MATLAB
In MATLAB, creating, concatenating, and expanding matrices are three basic matrix operations. Since, matrix is one of the essential data structures in MATLAB programming used to perform various data processing tasks. Hence, understanding the process of creating, concatenating, and expanding matrices is important to perform data organization and manipulation in MATLAB programming. This article is meant for answering the following three questions related to MATLAB matrices − How to create different types of matrices in MATLAB? How to concatenate matrices? How to expand matrices? Let us discuss each operation one-by-one in detail. Creating Matrix in MATLAB In MATLAB, ...
Read MoreWhat is Electrical Conductivity? – Principle, Formula and Applications
Electrical Conductivity is an important term used in electrical engineering to understand the behavior of a material and electric current flowing through it. Electric conductivity is the property of a material that provides ease in the flow of electric current through the material. Read this article to get a detailed understanding of "electric conductivity", from its definition to principle and its applications. Let us start with the basic definition of electrical conductivity. What is Electrical Conductivity? Electrical conductivity is defined as the property that provides ease in the flow of electric current (movement of electrons) through a material. Electrical conductivity ...
Read MoreRoot Mean Square Error (RMSE) in MATLAB
Root Mean Square Error (RMSE) is an error estimation technique used to calculate the difference between estimated values and actual values. This method provides the average value of errors as a single value. We can use MATLAB to calculate the root mean square error. For this, MATLAB provides various built-in functions. In this tutorial, I will explain how to calculate the Root Mean Square Error (RMSE) in MATLAB. What is Root Mean Square Error (RMSE)? The root mean square error (RMSE) is a method of measuring error or accuracy of a predictive tool or model. It is calculated by finding ...
Read MorePage-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 More