compute the mean of matrices with different dimensions
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
Sivaramakrishnan Rajaraman
am 31 Dez. 2018
Bearbeitet: Stephen23
am 31 Dez. 2018
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 Kommentare
Akzeptierte Antwort
Weitere Antworten (1)
madhan ravi
am 31 Dez. 2018
Simple example:
A=rand(3,3);
B=rand(3,3);
C=rand(3,2);
C=[C zeros(size(A,2),1)]
0 Kommentare
Siehe auch
Kategorien
Mehr zu Resizing and Reshaping Matrices finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!