creating matrix from column vectors

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

creating matrix from column vectors

Rajendra Marathe
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


Reply | Threaded
Open this post in threaded view
|

Re: creating matrix from column vectors

Ian McCallion
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 <[hidden email]>
Sent: Sun Dec 02 16:57:30 GMT+00:00 2018
To: [hidden email]
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


------------------------------------------------------------------------