Inserting multiple columns into an existing matrix in equal distance

I would like to break down the red matrix (see below) into 3 columns and insert each column in equal distance into the yellow one.

 채택된 답변

James Tursa
James Tursa 2017년 12월 11일
E.g.,
yellowx = reshape(yellow,[],size(red,2));
result = reshape([red;yellowx],size(red,1),[]);

추가 답변 (0개)

카테고리

도움말 센터File Exchange에서 Operators and Elementary Operations에 대해 자세히 알아보기

질문:

2017년 12월 11일

댓글:

2017년 12월 11일

Community Treasure Hunt

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

Start Hunting!

Translated by