what is the difference between matrix and array in the meaning and functions?
Show older comments
i want to know the difference between the matrix and array in terms of the meaning and function , if any one will answer please with an example thanks
4 Comments
dpb
on 29 Jul 2014
A matrix is a 2D array with which follows the rules for linear algebra. It is, therefore, a subset of more general arrays which may be of higher dimension or not necessarily follow matrix algebra rules.
mohammad
on 29 Jul 2014
dpb
on 29 Jul 2014
An array is any ordered n-dimensional collection.
Star Strider
on 29 Jul 2014
Accepted Answer
More Answers (1)
Robin Szeto
on 30 May 2017
3 votes
All MATLAB variables are multidimensional arrays, no matter what type of data. A matrix is a two-dimensional array often used for linear algebra. source: https://www.mathworks.com/help/matlab/learn_matlab/matrices-and-arrays.html
2 Comments
+1 This is true: all MATLAB array types are N-dimensional, with implicit infinite trailing singleton dimensions, as has been discussed many times before:
"Arrays in MATLAB are N-dimensional, with an infinite number of trailing singleton dimensions."
Markee Foster
on 9 Apr 2020
helpful clarification!
Categories
Find more on Rubik's Cube in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!