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일

3 개 추천

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

The wiki link says "Bad title"
Well spotted. The parentheses in the wiki URL was coded wrong. Fixed it now.

댓글을 달려면 로그인하십시오.

추가 답변 (4개)

mntaser salem
mntaser salem 2015년 1월 24일

0 개 추천

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.

댓글을 달려면 로그인하십시오.

Hayden Wineck
Hayden Wineck 2016년 10월 11일

0 개 추천

I had the same question also, thanks for the help.
Yared Bekele
Yared Bekele 2021년 7월 8일

0 개 추천

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에서 Matrix Indexing에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by