2016/10/07

Matlab: Vector, Matrix, Array and Row/Column Vector

In Matlab,

vector = one-dimensional array
matrix = two-dimensional array

The example below shows the difference between a row vector and a column vector:

>> x = 1:7

x =

     1     2     3     4     5     6     7

>> y = x'

y =

     1
     2
     3
     4
     5
     6
     7

where

x is a row vector.
y is a column vector.

沒有留言:

張貼留言