array
1 次查看(过去 30 天)
显示 更早的评论
what is the difference between array and matrices in matlab?
0 个评论
采纳的回答
James Tursa
2012-4-24
The nomenclature typically is:
Scalars are 1x1
Vectors are 1xN or Nx1
Matrices are MxN
Arrays are typically 3D or more, MxNxPx...etc
1 个评论
Walter Roberson
2012-4-24
And just to clarify: "array" covers all of the varieties.
It is like a "point" is a particular example of a "line", and a "line" is a particular example of a "rectangle", and a "rectangle" is a particular example of a "hyperrectangle", with all the levels above that also being referred to as "hyperrectangle" -- so you could use "hyperrectangle" to refer even to something that later turned out to be a point.
In practice, though, it is not uncommon for people to use "matrix" in MATLAB even when they mean a 3D or more array.
更多回答(1 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Resizing and Reshaping Matrices 的更多信息
产品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!