How do I concatenate the same table n-times vertically?

2 views (last 30 days)
I want to make a bigger table by adding my table (T) n-times vertically. If n is a small number, let's say n=5, I can basically write it like so:
biggertable = [T;T;T;T;T]
But what if n=1000 or even more? Is there a matlab command that does this? Thanks a lot for your help!

Accepted Answer

Simon Chan
Simon Chan on 22 Aug 2021
Try this:
biggertable=repmat(T,1000,1);

More Answers (0)

Products

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!