Assuming we have three column vectors a
, b
, and c
, we can create a matrix M
having a
, b
, and c
as its columns using the following syntax:
main.m14 chars2 lines
This concatenates the three vectors a
, b
, and c
horizontally to form a matrix M
. Each vector becomes a column in the resulting matrix.
gistlibby LogSnag