compute the mean of matrices with different dimensions
5 ビュー (過去 30 日間)
古いコメントを表示
I have three matrices of dimensions: matrixA: [2730 512], matrixB: [2730 512], and matrixC: [2730 256]. How do I reshape matrixC to [2730 512] by filling empty cells with zeros and compute the average of the three matrices so that the resultant matrix will be of dimension [2730 512]?
0 件のコメント
採用された回答
その他の回答 (1 件)
madhan ravi
2018 年 12 月 31 日
Simple example:
A=rand(3,3);
B=rand(3,3);
C=rand(3,2);
C=[C zeros(size(A,2),1)]
0 件のコメント
参考
カテゴリ
Help Center および File Exchange で Resizing and Reshaping Matrices についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!