Tuesday, July 26, 2016

dealing-with-matrices-matlab

dealing-with-matrices-matlab

By reading this article, one can easily understand the working of Matrices in Matlab. In many cases,especially in the case of research, we need to perform operations on matrices. Matlab provides very simple commands (statements) for performing operations on matrices. This article explains different operations on matrices. In addition, it explains different operations on 3D arrays.

In Image Processing, an image can be considered as a matrix. The operations that can be performed on matrices, can also be applicable for images. Here, we explain the different matrix operations in image processing with neat diagrams.

creating 1D array

By simply assigning some values separated by commas within the square brackets to a variable, say 'a', 'a' is called a vector. Values in vector can be accessed by a(i). i varies from 1 to length of vector. Example is shown below.

creating 2D array (Matrix)

By simply assigning some values separated by commas and semicolons within the square brackets to a variable, say 'a', 'a' is called a Matrix. Values in Matrix can be accessed by a(i,j). i, j refers rows and columns of matrix. Example is shown below.
Follow us on Facebook :



No comments:

Post a Comment

Python-environment-for-deep-learning-in-windows

Python is increasingly becoming a popular programming language for machine learning and deep learning. If you want to use python for train...