Inserting multiple columns into an existing matrix in equal distance
2 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Saeid
am 11 Dez. 2017
Kommentiert: Saeid
am 11 Dez. 2017
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.

0 Kommentare
Akzeptierte Antwort
James Tursa
am 11 Dez. 2017
E.g.,
yellowx = reshape(yellow,[],size(red,2));
result = reshape([red;yellowx],size(red,1),[]);
Weitere Antworten (0)
Siehe auch
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!