How do I create such matrix ? (please look at the thread for further details)
Show older comments
Hi,
Let say I have a matrix of [X1 X2 ... Xm], [Y1 Y2 ... Ym] and [Z1 Z2 ... Zm].
All mentioned matrix have m column and n row each, how do I make it in such a way that it becomes [X1 Y1 Z1 X2 Y2 Z2 ... Xm Ym Zm] that gives 3m columns and n rows matrix?
Accepted Answer
More Answers (1)
Jos (10584)
on 20 Dec 2013
help cat
help vertcat
help transpose
help reshape
After reading about those functions you should be able to do it yourself and learned a lot along the way. Just try (and fail and try and fail and try …) and succeed!
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!