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.

 採用された回答

James Tursa
James Tursa 2017 年 12 月 11 日

0 投票

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

その他の回答 (0 件)

カテゴリ

ヘルプ センター および File ExchangeOperators and Elementary Operations についてさらに検索

質問済み:

2017 年 12 月 11 日

コメント済み:

2017 年 12 月 11 日

Community Treasure Hunt

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

Start Hunting!

Translated by