Inserting multiple columns into an existing matrix in equal distance

2 Ansichten (letzte 30 Tage)
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

James Tursa
James Tursa am 11 Dez. 2017
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 Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by