필터 지우기
필터 지우기

Difference between Matrix and array?

조회 수: 89 (최근 30일)
ABTJ
ABTJ 2020년 2월 23일
편집: Stephen23 2020년 2월 23일
Although i know that matrices are somehow subset of arrays but i want to know to the point answer. Is it only that matrices are usually having only 2dimensions,that are rows and coulmns,while arrays have a 3rd dimension also that is known as page?
  댓글 수: 1
Stephen23
Stephen23 2020년 2월 23일
편집: Stephen23 2020년 2월 23일
"Is it only that matrices are usually having only 2dimensions,that are rows and coulmns,while arrays have a 3rd dimension also that is known as page?"
The ismatrix documentation states that a matrix "A matrix is a two-dimensional array that has a size of m-by-n, where m and n are nonnegative integers."
Arrays have any number of dimensions, as far as I am concerned an array does not need to have pages, it can also be 2D (i.e. matrix) or scalar or empty. Matrices are just a convenient name given to a particular subset of arrays.
See also:

댓글을 달려면 로그인하십시오.

채택된 답변

Matt J
Matt J 2020년 2월 23일
Matrices can only be two-dimensional, whereas arrays can have any number of dimensions. The term "page" for the 3rd dimension doesn't seem to be standard outside of Matlab, but is used by many.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Matrix Indexing에 대해 자세히 알아보기

제품


릴리스

R2015a

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by