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.

 Akzeptierte Antwort

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

Weitere Antworten (0)

Kategorien

Mehr zu Operators and Elementary Operations finden Sie in Hilfe-Center und File Exchange

Gefragt:

am 11 Dez. 2017

Kommentiert:

am 11 Dez. 2017

Community Treasure Hunt

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

Start Hunting!

Translated by