How to merge multiple matrices
古いコメントを表示
I need to combine multiple matrices (doubles) (all the same length with padding of 0) into one matrix without losing their 'position'. The problem is when I do that, it seems that the numbers physically add in the one matrix rather than just become one matrix retaining all of the individual numbers. How would I combine all these matrices together? The end result is that I will need to plot this set of combined matrices with another set of combined matrices
4 件のコメント
the cyclist
2016 年 1 月 24 日
Can you give a small example or two of input and output matrices that illustrate how you want them combined?
Jason Moore
2016 年 1 月 24 日
x = ones(5,5) y = zeros(5,5) z = [x,y]
Z will end up being a combined matrix with a dimension of 5x10
Image Analyst
2016 年 1 月 24 日
A "matrix" is a 2-D array. What do you mean by the "length" of a matrix? What do you mean by padding? Can you give a numerical example?
jgillis16
2016 年 1 月 24 日
回答 (1 件)
Star Strider
2016 年 1 月 24 日
0 投票
(Meow!)
カテゴリ
ヘルプ センター および 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!