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

3 vues (au cours des 30 derniers jours)
Thi Hong Nhung Nguyen
Thi Hong Nhung Nguyen le 22 Août 2021
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!

Réponse acceptée

Simon Chan
Simon Chan le 22 Août 2021
Try this:
biggertable=repmat(T,1000,1);
  1 commentaire
Thi Hong Nhung Nguyen
Thi Hong Nhung Nguyen le 22 Août 2021
worked perfectly! Thanks a lot for your help!

Connectez-vous pour commenter.

Plus de réponses (0)

Catégories

En savoir plus sur Logical dans Help Center et File Exchange

Produits

Community Treasure Hunt

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

Start Hunting!

Translated by