Inserting multiple columns into an existing matrix in equal distance

1 vue (au cours des 30 derniers jours)
Saeid
Saeid le 11 Déc 2017
Commenté : Saeid le 11 Déc 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.

Réponse acceptée

James Tursa
James Tursa le 11 Déc 2017
E.g.,
yellowx = reshape(yellow,[],size(red,2));
result = reshape([red;yellowx],size(red,1),[]);

Plus de réponses (0)

Catégories

En savoir plus sur Creating and Concatenating Matrices dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by