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.

 Accepted Answer

E.g.,
yellowx = reshape(yellow,[],size(red,2));
result = reshape([red;yellowx],size(red,1),[]);

More Answers (0)

Categories

Find more on Operators and Elementary Operations in Help Center and File Exchange

Asked:

on 11 Dec 2017

Commented:

on 11 Dec 2017

Community Treasure Hunt

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

Start Hunting!