Discussion:
creating matrix from column vectors
Rajendra Marathe
2018-12-02 16:57:30 UTC
Permalink
I have a 10 column vectors of size (400*1) generated in a for loop
I want to save them as columns of a a matrix of size 400*10
how do i write a for loop to do this
Can you help?
R V Marathe
Ian McCallion
2018-12-02 17:25:15 UTC
Permalink
No loop needed. If the vectors are called a,b,c, etc the result you need is

Combined = [a;b;c; ...];

⁣Cheers... Ian​


-------- Original Message --------
From: Rajendra Marathe <***@gmail.com>
Sent: Sun Dec 02 16:57:30 GMT+00:00 2018
To: ***@octave.org
Subject: creating matrix from column vectors

I have a 10 column vectors of size (400*1) generated in a for loop
I want to save them as columns of a a matrix of size 400*10
how do i write a for loop to do this
Can you help?
R V Marathe


-----------------------------------------------------------------
Loading...