Computer Science, asked by pranjal070703, 7 months ago

what is difference between arrays and matrix​

Answers

Answered by ArchanaDevalla
1

Answer:

Arrays have only one dimension, a row of elements while a matrix has more dimensions, mostly 2 but can have more than that, and its elements are either column or row arrays which are here called vectors for a matrix with two dimensions or matrices with dimension n-1 for a matrix of n dimensions.

hope this may help u......

Answered by jayy11
1

An array is a collection of similar data types.

So your standard array looks like this.

[1,2,3,4,5,6,7,8,9]

And A matrix could look like a collection of the array, it means that an array which holds other arrays. From a programming point of view, we saw that a matrix is an array of 2 dimensions. Your matrix does look something like this.

[[1, 2, 3], [4, 5, 6], [7, 8, 9]]

This is how we can define a matrix, mathematically we have a different meaning, but this array of arrays will be helpful to perform all the matrix operations.

Similar questions