what is the difference between a vector and a matrix?

 采纳的回答

A matrix is simply a rectangular array of numbers and a vector is a row (or column) of a matrix.
Read more about the practical details in the documentation Matrices and arrays/vectors.
Also, read some theory in Wikipedia on Matrix (mathematics).

更多回答(4 个)

vector is one dimension array such a=[1 2 3 4 5], but matrix is more than one dimension array such 2*2 matrix b =[ 2 4 6 8 ] , and has some of operation.

2 个评论

I think you mean b = [2 4; 6 8]
From the info I gathered it seems that a matrix can be one dimensional or two, whereas a vector is one dimensional e.g a row or column vector. Thoughts? Gathered this based on link from per isakson.

请先登录,再进行评论。

Matrix can be one dimesional or more than one, but vector is only one dimesionsl (i.e row vector, column vector). All vectors are matrix, but not all matrix are vectors.

类别

帮助中心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!

Translated by