Answers ( 3 )

  1. matrix is an array.
    matrix is a 2D array.
    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.

  2. An array is a matrix but a matrix is not necessarily an array.
    An array holds multi-dimensional rectangular data, rectangular in the
    sense that each row and column has the same length.
    Matrix has only 2 dimensions, so it is a special case of 2-D array.

  3. Matrix is an array of dimension two. But not all arrays are matrices since arrays can be multidimensional.

Leave an answer

Browse
Browse