Create a matrix with a repetitive pattern

15 Ansichten (letzte 30 Tage)
AA
AA am 5 Apr. 2018
Beantwortet: James Tursa am 5 Apr. 2018
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

Akzeptierte Antwort

James Tursa
James Tursa am 5 Apr. 2018
x = your original vector
n = number of vertical repititions
result = repmat(x,n,1);

Weitere Antworten (0)

Kategorien

Mehr zu Data Type Conversion finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by