matlab - the easiest way to convert matrix to one row vector -
possible duplicate:
how concatenate rows of matrix vector in matlab?
hi,
does know best way create 1 row matrix (vector) m x n matrix putting rows, 1 m, of original matrix first row of new matrix following way:
a = [row1; row2; ...; rowm] b = [row1, row2, ..., rowm]
example:
a = [1 1 0 0; 0 1 0 1] b = [1 1 0 0 0 1 0 1]
is there simple method or perhaps built-in function generate matrix b a?
try this: b = ( : )
, or try reshape
function.
http://www.mathworks.com/access/helpdesk/help/techdoc/ref/reshape.html
Comments
Post a Comment