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.

 Respuesta aceptada

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

Más respuestas (0)

Categorías

Más información sobre Operators and Elementary Operations en Centro de ayuda y File Exchange.

Preguntada:

el 11 de Dic. de 2017

Comentada:

el 11 de Dic. de 2017

Community Treasure Hunt

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

Start Hunting!

Translated by