Found 163 Articles for MATLAB

Create Cartesian Axes in MATLAB

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

51 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

86 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

434 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

179 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

128 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

Up Sampling in Frequency Domain in MATLAB

Manish Kumar Saini
Updated on 08-Aug-2023 10:47:45

249 Views

Introduction to Up−Sampling In digital signal processing, the technique which allows to increase the sampling rate of a signal is termed as up−sampling. For a signal expressed in frequency domain, the up sampling is performed by adding zeros in the frequency domain. In digital signal processing, the up sampling in frequency domain is commonly used to interpolate or expand the bandwidth of a digital signal. In MATLAB, the up−sampling process is completed in the following three phases: Step 1 − Perform Discrete Fourier Transformation (DFT) In this phase/step, the given signal is transformed from the time domain to the frequency ... Read More

Types of 2-D Discrete Data Plots in MATLAB

Manish Kumar Saini
Updated on 08-Aug-2023 10:46:05

256 Views

MATLAB is a scientific programming language that provides different ways of expression information. One of them is 2D discrete data plots. In MATLAB, we can create several different types of 2D discrete data plots to represent data and information graphically. In this article, we will explore different types of 2D discrete data plots in MATLAB, and will discuss their implementation using MATLAB programming. So, let’s start with the basic introduction of 2D discrete data plots in MATLAB. Introduction to 2D Discrete Data Plot In MATLAB, the 2D discrete data plot is a graphical way of representing information or data points ... Read More

Turn an Array into a Column Vector in MATLAB

Manish Kumar Saini
Updated on 08-Aug-2023 10:43:28

789 Views

In MATLAB, an array is a data structure used to store elements in contiguous memory blocks. A column vector is a one−dimensional array of elements. In a column vector, the elements are arranged column−wise. It is also important to note that MATLAB by default stores arrays in a column wise manner which means the elements of the array are stored in the memory as a column vector. In this article, we will explore different approaches to convert an array into a column vector using MATLAB programming. Method (1): Using Transpose Function We can turn an array into a column vector ... Read More

Turn a Matrix into a Row Vector in MATLAB

Manish Kumar Saini
Updated on 08-Aug-2023 10:41:22

1K+ Views

In MATLAB, a matrix is nothing but an array of rows and columns arranged in a square or rectangular shape. A matrix is basically a two−dimensional array of numbers. MATLAB allows us to create various types of matrices, such as n × n matrix, n × m matrix, column vector, row vector, etc. In this article, we will learn how to turn a matrix into a row rector using MATLAB programming. A row vector is a one−dimensional array in which the elements of the matrix are arranged in a single row. When we create a row vector, MATLAB stores the ... Read More

Thresholding-Based Image Segmentation in MATLAB

Manish Kumar Saini
Updated on 08-Aug-2023 10:39:39

770 Views

In computer−based image analysis and processing, the image segmentation is an essential task. The image segmentation allows us to extract specific objects or regions from an image. In digital image processing, the most widely used image segmentation technique is the thresholding−based image segmentation. This image segmentation technique works depending on the pixel intensity values to separate different regions within an image. In this article, we will discuss learn the implementation of thresholding−based image segmentation using MATLAB programming. But before that let’s get into the basics of thresholding and its types. What is Thresholding? In digital image processing, the thresholding is ... Read More

Advertisements