New array from several arrays
2 views (last 30 days)
Show older comments
Hi,
I have the three arrays:
[a(1) a(2) a(3)]
[b(1) b(2) b(3)]
[c(1) c(2) c(3)]
and I want to make a new array as following:
[a(1) b(1) c(1) a(2) b(2) c(2) a(3) b(3) c(3)]
I greatly appreciate any help or any idea
Thanks
1 Comment
Accepted Answer
Azzi Abdelmalek
on 21 Mar 2015
Edited: Azzi Abdelmalek
on 21 Mar 2015
out=[a;b;c];
out=out(:)'
0 Comments
See Also
Categories
Find more on Creating and Concatenating Matrices in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!