Create a matrix with a repetitive pattern

조회 수: 15 (최근 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 CenterFile Exchange에서 Data Type Conversion에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by