I have A=[1 2]' I would like to display it in repetitive form as A=[1 2 1 2 1 2 1 2 1 2 1 2]' using loop structure, any help please

 채택된 답변

Ankit
Ankit 2022년 2월 3일
편집: Ankit 2022년 2월 3일

0 개 추천

read more about repmat
A = [1 2]';
A = repmat(A,6,1);

추가 답변 (0개)

카테고리

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

질문:

2022년 2월 3일

댓글:

2022년 2월 3일

Community Treasure Hunt

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

Start Hunting!

Translated by