Found 33676 Articles for Programming

Discrete Fourier Transform and its Inverse using MATLAB

Manish Kumar Saini
Updated on 06-Sep-2023 15:37:05

4K+ Views

Discrete Fourier transform and Inverse discrete Fourier transform are two mathematical operations used to analyze functions and signals in the frequency domain. Both DFT and IDFT are widely used in the field of digital signal processing to synthesize and analyze the digital signals. Let's discuss a bit more about the Discrete Fourier Transform (DFT) and Inverse Discrete Fourier Transform (IDFT) individually. What is Discrete Fourier Transform (DFT)? In mathematics, the discrete Fourier transformation (DFT) is a transformation technique that is used to convert a sequence of discrete datapoints from time domain to frequency domain. DFT basically converts a sequence of ... Read More

Differential or Derivatives in MATLAB

Manish Kumar Saini
Updated on 06-Sep-2023 15:34:48

663 Views

In mathematics, differential or derivative is one of the fundamental operations used to determine the rate of change of a function. Therefore, derivatives are crucial to analyze various scientific and engineering processes or functions. We can perform derivates using various mathematical tools like MATLAB. In this tutorial, we will explore how to calculate derivative of a given mathematical function using MATLAB. But before that let's first get an overview of derivative. What are Derivatives? Derivative is a mathematical operation used to compute the rate of change occurring in a function or a process. In terms of geometry, derivates is defined ... Read More

Definite Numerical Integration Using Quad in MATLAB

Manish Kumar Saini
Updated on 06-Sep-2023 13:36:50

251 Views

In this tutorial, we will learn how to calculate definite numerical integration using Quad function in MATLAB. But before that, let us first understand what is definite numerical integration. What is Definite Numerical Integration? In mathematics, a method of determining the approximate value of the definite integral of a function over a certain interval is termed as definite numerical integration. Where, the definite integral specifies the signed area under the curve of a function within the specified interval. The definite numerical integration is beneficial in approximating the value of a definite integral of a function when it is not possible ... Read More

Define Import Options for Table in MATLAB

Manish Kumar Saini
Updated on 04-Sep-2023 16:53:52

159 Views

In this tutorial, we will define various import options for table in MATLAB. The import options allow us to bring data into a table or another data format. For example, we can utilize this option to read data from a given spreadsheet file "sample.xlsx" into MATLAB in the form of a table. By using the import options, we have the ability to open the designated file, select the desired output format and date range, and then save our selections. Upon clicking the "Import Selection" option, the specified data can be easily integrated into the MATLAB workspace. Additionally, the tabular ... Read More

Cubic Spline Data Interpolation in MATLAB

Manish Kumar Saini
Updated on 06-Sep-2023 13:33:40

492 Views

In mathematics, the cubic spline data interpolation is a way of calculating values between data points of a given data set. This technique is widely used when we want to plot a smooth curve passing through these data points. In MATLAB, we can calculate the cubic spline data interpolation by using any of two built-in functions namely, 'spline' or 'interp1'. Syntax Where, the syntax of the 'spline' function is, I = spline(x, y, query); Here, 'x and 'y' are the vectors containing input data points required for interpolation, and 'query' is the vector that contains data points at which ... Read More

Create Cartesian Axes in MATLAB

Manish Kumar Saini
Updated on 06-Sep-2023 13:04:06

127 Views

When a figure is constructed in MATLAB as a graphical component, the cartesian axes are automatically added; however, MATLAB has a function, the 'axes()' function, to carry out the specific task. Cartesian axes are produced in a figure by this function. When several cartesian planes are required in a single figure component, it is quite helpful. In this tutorial, we will explore how to create cartesian axes in MATLAB. Now, let us discuss different syntaxes of the 'axes' function to create cartesian axes with the help of example programs. (1). Create Default Cartesian Axes In MATLAB, we can use the ... Read More

Create a Slider Component in MATLAB

Manish Kumar Saini
Updated on 06-Sep-2023 12:58:52

200 Views

MATLAB is a high-level programming language that allows us to create GUI applications without need of proper programming knowledge. In a MATLAB application, we can create various kinds of GUI (Graphical User Interface) components such as buttons, slider, text and number fields, hyperlinks, and many more. This tutorial is meant for explaining the process of creating a slider component in a MATLAB application. A slider component in MATLAB application is a GUI component that allows users to chose a specific value from a range just by dragging a slider/wiper control along the range track. In MATLAB, we can create a slider ... Read More

Cosine Similarity Calculation Between Two Matrices in MATLAB

Manish Kumar Saini
Updated on 06-Sep-2023 12:22:34

889 Views

In this tutorial, we will learn how to calculate cosine similarity between two matrices using MATLAB. So, let’s start with the basic definition of cosine similarity. What is Cosine Similarity? Cosine similarity is a standard of measurement in matrix algebra used to determine the measure of similarity between two non-zero matrices in an inner product space like Euclidean space. Cosine similarity measures the cosine of the angle between the two matrices and produces a value between -1 and 1. Here, the value 1 indicates that the two matrices are perfectly similar, and the value -1 indicates that the two matrices ... Read More

Bit and Byte Organized Memory

Manish Kumar Saini
Updated on 05-Sep-2023 17:23:18

681 Views

In the field of computer, the terms “Bit”, “Byte”, and “Memory” are very commonly used. Memory is defined as a property of a device responsible for storing information. Bit and Bytes are two fundamental measurement units of memory capacity. A bit is used to represent a binary digit, either a 0 or a 1. While the term byte is used to specify a group of 8-bits. In computer systems, digital memory can be organized either in bits or bytes. In this article, we will discuss the various important concepts related to the topic “bit and byte organized memory”. Concept of ... Read More

Binarization of Digital Images Using Otsu Method in MATLAB

Manish Kumar Saini
Updated on 05-Sep-2023 17:21:17

383 Views

In digital image processing, the process of transforming a color image or a grayscale image into a binary image is referred to as binarization of the image. In a binary image, the image pixels are represented using binary values i.e., 0 and 1, where 0 represents the black pixel and 1 represents the white pixel. Binarization is an efficient technique to simplify the image analysis and it also helps in extracting important characteristics of the image. Process of Binarization of Digital Images The process of binarization of a digital image is based on the use of a threshold value to ... Read More

Advertisements