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
Articles by Manish Kumar Saini
Page 8 of 80
How 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 MoreDifference between Conductor, Semiconductor, and Insulator
In order to differentiate the Conductor, Semiconductor, and Insulator, first we have to understand their extent of forbidden band i.e. separation between their conduction and valance band. The main difference between the conductor, semiconductor and insulator is in their conductivity.ConductorA conductor is a type of material that allows the electric current to flow through it i.e. it possesses least resistance in the path of free electrons. In case of conductor, the valance and conduction bands overlap. Due to this overlapping, a small potential difference across a conductor causes the free electrons to constitute electric current.All the metals are conductors. The ...
Read MoreDifference between IGBT and MOSFET
Insulated Gate Bipolar Transistor (IGBT) and Metal Oxide Semiconductor Field Effect Transistor (MOSFET) are two types of transistors that are the basic building blocks of modern electronic circuits. Both IGBT and MOSFET are voltage-controlled devices. However, they are different in various aspects. Go through this article to get a basic overview of how these two transistors operate and how they are different from each other.What is IGBT?IGBT stands for Insulated Gate Bipolar Transistor. IGBT is a three terminal semiconductor device which is used in various electronic circuits for switching and amplification of signals. The three terminals of the IGBT are: ...
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 MoreHow to extract numbers from cell array in MATLAB?
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 MoreHow to Export a Matrix as a CSV File in MATLAB?
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