Create a matrix with a repetitive pattern

14 ビュー (過去 30 日間)
AA
AA 2018 年 4 月 5 日
回答済み: James Tursa 2018 年 4 月 5 日
Hi,
consider the following matrix.
234
235
236
237
238
239
I want to convert it into the following matrix pattern:
234
235
236
237
238
239
234
235
236
237
238
239
234
235
236
237
238
239
234
235
236
237
238
239
234
235
236
237
238
239
234
235
236
237
238
239

採用された回答

James Tursa
James Tursa 2018 年 4 月 5 日
x = your original vector
n = number of vertical repititions
result = repmat(x,n,1);

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeData Type Conversion についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by