convert vector to matrix MATLAB

Discussion in 'App Development' started by newbie193, Jul 2, 2013.

  1. newbie193

    newbie193

    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:confused:
     
  2. flakac

    flakac

    % a1.. a12 are your vector 1 X 150
    % A is your new vector 12 X 150
    % so
    A=[a1;a2;a3;a4;a5;a6;a7;a8;a9;a10;a11;a12];