what is the difference between matrix and array in the meaning and functions?
Afficher commentaires plus anciens
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 commentaires
dpb
le 29 Juil 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
le 29 Juil 2014
dpb
le 29 Juil 2014
An array is any ordered n-dimensional collection.
Star Strider
le 29 Juil 2014
Réponse acceptée
Plus de réponses (1)
Robin Szeto
le 30 Mai 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 commentaires
+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
le 9 Avr 2020
helpful clarification!
Catégories
En savoir plus sur Rubik's Cube dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!