convert vector to matrix matlab
convert vector to matrix matlab
(OP)
hi
I am a newbie to programming.
i have 12 vectors of size 1*150 (1 row 150 columns)
i want to merge all these 12 vectors to a matrix of size 12 *150
(12 row 150 columns)
how should i do it?
all vectors are of same size 1* 150 andAll of them have to join into a matrix of size 12* 150
say vectors are (A1 A2 ... A12) TO a single matrix A(size 2 * 150)
I AM USING MATLAB
please do help
I am a newbie to programming.
i have 12 vectors of size 1*150 (1 row 150 columns)
i want to merge all these 12 vectors to a matrix of size 12 *150
(12 row 150 columns)
how should i do it?
all vectors are of same size 1* 150 andAll of them have to join into a matrix of size 12* 150
say vectors are (A1 A2 ... A12) TO a single matrix A(size 2 * 150)
I AM USING MATLAB
please do help





RE: convert vector to matrix matlab
RE: convert vector to matrix matlab
In general, this is far too simple a question to post to a forum. As an electrical engineer, it's surprising to be a "newbie to programming", and is unacceptable to not be able to read the Getting Started chapter of the MATLAB help. Consider the collective time of you posting, everyone reading, and my reply, compared to the gains you would achieve by reading the MATLAB help.
RE: convert vector to matrix matlab
But also experiment with [A1,A2], [A1',A2'] and [A1';A2'] to give you some idea of how catenation works
Cheers
Greg Locock
New here? Try reading these, they might help FAQ731-376: Eng-Tips.com Forum Policies http://eng-tips.com/market.cfm?