MATLAB Answers

AA
0

Create a matrix with a repetitive pattern

Asked by AA
on 5 Apr 2018
Latest activity Answered by James Tursa
on 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

  0 Comments

Sign in to comment.

1 Answer

Answer by James Tursa
on 5 Apr 2018
 Accepted Answer

x = your original vector
n = number of vertical repititions
result = repmat(x,n,1);

  0 Comments

Sign in to comment.