matrix variable problem in matlab

조회 수: 2 (최근 30일)
marwa hajji
marwa hajji 2022년 2월 3일
댓글: marwa hajji 2022년 2월 3일
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일
read more about repmat
A = [1 2]';
A = repmat(A,6,1);

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Resizing and Reshaping Matrices에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by