Suppose I have a 1*N row vector A. I want to vertically concatenate A for M times to create M*N matrix. Please advise.

 채택된 답변

Ameer Hamza
Ameer Hamza 2018년 4월 21일

1 개 추천

You can use repmat() to repeat a matrix several times. In your case you can use

repmat(A, m, 1)

추가 답변 (0개)

카테고리

도움말 센터File Exchange에서 Creating and Concatenating Matrices에 대해 자세히 알아보기

제품

태그

질문:

2018년 4월 21일

답변:

2018년 4월 21일

Community Treasure Hunt

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

Start Hunting!

Translated by