MATLAB: Convert matrix into matrix with a repetitive pattern

convert matrix

Consider the following matrix.
234
235
236
237
238
239
I want to convert it into the following matrix pattern:
234
234
234
235
235
235
236
236
236
237
237
237
238
238
238
239
239
239

Best Answer

doc repelem