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

조회 수: 2 (최근 30일)
Thi Hong Nhung Nguyen
Thi Hong Nhung Nguyen 2021년 8월 22일
댓글: Thi Hong Nhung Nguyen 2021년 8월 22일
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!

채택된 답변

Simon Chan
Simon Chan 2021년 8월 22일
Try this:
biggertable=repmat(T,1000,1);

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Logical에 대해 자세히 알아보기

제품

Community Treasure Hunt

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

Start Hunting!

Translated by