what is the difference between a vector and a matrix?

60 ビュー (過去 30 日間)
JohnS
JohnS 2015 年 1 月 24 日
回答済み: Walter Roberson 2021 年 7 月 8 日
what is the difference between a vector and a matrix?

採用された回答

Matz Johansson Bergström
Matz Johansson Bergström 2015 年 1 月 24 日
編集済み: Matz Johansson Bergström 2015 年 1 月 24 日
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 件のコメント
per isakson
per isakson 2015 年 1 月 24 日
The wiki link says "Bad title"
Matz Johansson Bergström
Matz Johansson Bergström 2015 年 1 月 24 日
Well spotted. The parentheses in the wiki URL was coded wrong. Fixed it now.

サインインしてコメントする。

その他の回答 (4 件)

mntaser salem
mntaser salem 2015 年 1 月 24 日
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 件のコメント
David Young
David Young 2015 年 1 月 24 日
I think you mean b = [2 4; 6 8]
JohnS
JohnS 2015 年 1 月 25 日
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.

サインインしてコメントする。


Hayden Wineck
Hayden Wineck 2016 年 10 月 11 日
I had the same question also, thanks for the help.

Yared Bekele
Yared Bekele 2021 年 7 月 8 日
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 2021 年 7 月 8 日

カテゴリ

Help Center および File ExchangeCreating and Concatenating Matrices についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by