Repeat rows of matlab

213 views (last 30 days)
Cside
Cside on 5 Sep 2019
Commented: Cside on 5 Sep 2019
I have a 1 x 10 matrix and would like to duplicate the same row (and same data) to a 10x 10 matrix. How may I do this?

Accepted Answer

madhan ravi
madhan ravi on 5 Sep 2019
repmat(matrix,10,1)
  1 Comment
Cside
Cside on 5 Sep 2019
thanks madhan :)

Sign in to comment.

More Answers (0)

Community Treasure Hunt

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

Start Hunting!

Translated by