expanding the existing matrix
Show older comments
I have a matrix like this.
M=[1 2 3;
4 5 6].
I want to expanding it into
M'=[1 1 2 2 3 3;
1 1 2 2 3 3;
1 1 2 2 3 3;
4 4 5 5 6 6;
4 4 5 5 6 6;
4 4 5 5 6 6].
I try to do this.but stil i could not get correct result?
Accepted Answer
More Answers (1)
Matt J
on 12 Sep 2013
0 votes
Instead of expanding it (resulting in more memory consumption) consider using this instead
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!