Create a matrix with a repetitive pattern

13 visualizaciones (últimos 30 días)
AA
AA el 5 de Abr. de 2018
Respondida: James Tursa el 5 de Abr. de 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

Respuesta aceptada

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

Más respuestas (0)

Categorías

Más información sobre Data Type Conversion en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by