How do I find an efficient way to create a matrix from an array

A=(1:100);
B=[A;A+1;A+2;....;A+100];
I'd like to create a matrix B but would prefer a faster and more efficient method than writing it out a hundred times, would appreciate any help and tips in general :)

回答 (1 件)

カテゴリ

ヘルプ センター および File ExchangeCreating and Concatenating Matrices についてさらに検索

質問済み:

2018 年 10 月 18 日

回答済み:

2018 年 10 月 18 日

Community Treasure Hunt

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

Start Hunting!

Translated by