필터 지우기
필터 지우기

what is the difference between a vector and a matrix?

조회 수: 61 (최근 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 CenterFile Exchange에서 Creating and Concatenating Matrices에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by