Inserting multiple columns into an existing matrix in equal distance
1 vue (au cours des 30 derniers jours)
Afficher commentaires plus anciens
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 commentaires
Réponse acceptée
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)
Voir également
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!