Data Structure
Networking
RDBMS
Operating System
Java
MS Excel
iOS
HTML
CSS
Android
Python
C Programming
C++
C#
MongoDB
MySQL
Javascript
PHP
- Selected Reading
- UPSC IAS Exams Notes
- Developer's Best Practices
- Questions and Answers
- Effective Resume Writing
- HR Interview Questions
- Computer Glossary
- Who is Who
Programming Articles - Page 163 of 3366
336 Views
The Outer product of two vectors is the matrix obtained by multiplying each element of the vector A with each element in the vector B. The outer product of the vectors a and b is given as a ⊗ b. The following is the mathematical formula for calculating the outer product.a ⊗ b = [a[0] * b, a[1] * b, ..., a[m-1] * b] Where, a, b are the vectors. denotes the element-wise multiplication of two vectors. The output of the outer product is a matrix in which i and j are the elements of the ... Read More
399 Views
In this article, we learn how to change the green background of an image to some other background using MATLAB programming. The concept of changing a green screen background to another background involves the use of a technology called “chroma key”. This technology detects the absolute green color in the image and omits it from the image. Then, we can apply another image or color as the background to the image. Algorithm The step−by−step process of changing the green screen background of an image with another background in MATLAB is explained below: Step (1) − Read the input image with ... Read More
535 Views
In this article, we will explore how to calculate variance in MATLAB. In mathematics, variance is a statistical tool used to measure the degree of dispersion of a set of data points around its average value. It is widely used to quantify the diversity or variability of a set of data points. We can compute variance of a data set by using the following formula: $\mathrm{Var=\frac{\displaystyle\sum\limits_{i=1}^n (x_i −\bar{x})^2}{n}}$ Where, xi is the individual data points, is the average of data set, and n is the total number of data points in the set. The following sections of this articles ... Read More
152 Views
MedianThe median is the statistical measure for the central tendency that represents the middle value of the sorted list of values. In other words, we can say that the median is the value which separates the upper half of the dataset from the lower half of the dataset. The mathematical formula for calculating the median is as follows when the total number of elements is odd. Median = (n+1)/2 Where, n is the last element from the given set. Flattened array Flattening is a process of reducing the dimensionality of an array. flattened array is a 1-d ... Read More
589 Views
Mean, Standard Deviation and Variance are the statistical measures which are used to describe the distribution of the given dataset data. In Numpy library, we have the functions to calculate the mean, standard deviation and variance of the arrays. Let’s see one by one in detail. Mean Mean is also known as average, which is the sum of all the elements in the array divided by the total number of elements. It is used to represent the central tendency of the data. Syntax Following is the syntax for applying the mean function on the arrays - numpy.mean(arr) ... Read More
834 Views
In this article, we will learn ow to calculate the impulse response of a system in MATLAB. Impulse response is an elementary concept used in analyzing and understanding the behavior of systems for an impulse input. It is mainly used to analyze the linear time invariant systems like digital filters, electronic circuits, signal processing systems, control systems, and more. Impulse response of a system can be defined as follows: The response of a system when an impulse input signal is applied to it, is called the impulse response. It is denoted as h(t) for continuous time systems and h[n] for ... Read More
616 Views
In this article, we will learn to calculate standard deviation in MATLAB. Standard deviation is a mathematical operation that gives the measure of variation in a set of data points. The standard deviation is used to study the dispersion of data around their average value. If a set of data points has a low standard deviation, it indicates that the data points tend to nearer to the average value. Whereas, the high standard deviation specifies a large dispersion of data points out from their average value. In MATLAB, we can calculate the standard deviation by using a built−in function named, ... Read More
300 Views
In this article, we will explore how to calculate moving sum using MATLAB programming. But before that let us have a look into the concept of moving sum. What is Moving Sum? Moving sum is a mathematical operation that allows to calculate the sum of a set of numbers over a specified interval, known as window size or rolling window. It is also known as cumulative sum or rolling sum. Moving sum is widely used in the field of data analysis and signal processing. Moving sum is generally performed on sequential data where the order of data elements is significant ... Read More
190 Views
The inverse matrix is a matrix that gives a multiplicative identity when multiplied with its original matrix. It is denoted by A-1. The inverse matrix can be calculated for the square matrices with the n x n size. The mathematical formula given for calculating the inverse matrix is as follows. A-1 . A = A . A-1 = I Where, A is the original matrix. A-1 is the inverse of the original matrix A. I is the identity matrix. Let’s take the original matrix as A with the size 2 x 2 and elements as ... Read More
333 Views
In this article, we will learn how to convert a YIQ image into an RGB image using MATLAB programming. YIQ is color space used in analog display devices to display color images. It uses three components namely, Y (brightness), I (In−Phase), and Q (Quadrature) to distinguish the image. Here, the Y component of the color space represents the luminance or brightness of the image, and the other two components, i.e. I and Q represent the color information of the image. The YIQ is a NTSC (National Television System Committee) standard based color−space. It is used in analog video systems to ... Read More