Inserting multiple columns into an existing matrix in equal distance
1 回表示 (過去 30 日間)
古いコメントを表示
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.
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/167570/image.png)
0 件のコメント
採用された回答
James Tursa
2017 年 12 月 11 日
E.g.,
yellowx = reshape(yellow,[],size(red,2));
result = reshape([red;yellowx],size(red,1),[]);
その他の回答 (0 件)
参考
カテゴリ
Help Center および File Exchange で Creating and Concatenating Matrices についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!