Inserting multiple columns into an existing matrix in equal distance

1 回表示 (過去 30 日間)
Saeid
Saeid 2017 年 12 月 11 日
コメント済み: Saeid 2017 年 12 月 11 日
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 日
E.g.,
yellowx = reshape(yellow,[],size(red,2));
result = reshape([red;yellowx],size(red,1),[]);

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeCreating and Concatenating Matrices についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by