How can I create create a matrix with a pattern?
古いコメントを表示
Hi,
I have a matrix S (4x12) like this:
S = [0 0 2 0 0 0 2 0 0 0 2 0;
0 0 0 2 0 0 0 2 0 0 0 2;
2 0 0 0 2 0 0 0 2 0 0 0;
0 2 0 0 0 2 0 0 0 2 0 0]
I need to create a matrix Z that is 4x27 and contains the original pattern from S in its first 12 columns and continues the pattern up to column 27.
Any help would be greatly appreciated.
採用された回答
その他の回答 (0 件)
カテゴリ
ヘルプ センター および File Exchange で Resizing and Reshaping Matrices についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!