what is the difference between a vector and a matrix?

60 vues (au cours des 30 derniers jours)
JohnS
JohnS le 24 Jan 2015
what is the difference between a vector and a matrix?

Réponse acceptée

Matz Johansson Bergström
Matz Johansson Bergström le 24 Jan 2015
Modifié(e) : Matz Johansson Bergström le 24 Jan 2015
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).
  2 commentaires
per isakson
per isakson le 24 Jan 2015
The wiki link says "Bad title"
Matz Johansson Bergström
Matz Johansson Bergström le 24 Jan 2015
Well spotted. The parentheses in the wiki URL was coded wrong. Fixed it now.

Connectez-vous pour commenter.

Plus de réponses (4)

mntaser salem
mntaser salem le 24 Jan 2015
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 commentaires
David Young
David Young le 24 Jan 2015
I think you mean b = [2 4; 6 8]
JohnS
JohnS le 25 Jan 2015
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.

Connectez-vous pour commenter.


Hayden Wineck
Hayden Wineck le 11 Oct 2016
I had the same question also, thanks for the help.

Yared Bekele
Yared Bekele le 8 Juil 2021
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.

Walter Roberson
Walter Roberson le 8 Juil 2021

Catégories

En savoir plus sur Creating and Concatenating Matrices dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by