Filter löschen
Filter löschen

How to do a Matrix Aggregation.

4 Ansichten (letzte 30 Tage)
Amine Ben Ayara
Amine Ben Ayara am 23 Mai 2016
Kommentiert: Matt J am 27 Mai 2016
I have 19720 of (7by7) matrices stacked up in excel file ( so basically a total of 138040 row). I want to aggregate these matrices into one (7by7) matrix where each row element represents the sum of all the elements in the rows from each (7by7) matrix. Any suggestions, please.

Antworten (1)

Matt J
Matt J am 23 Mai 2016
Once you've read your data into a 138040x7 matrix, A
aggregation =sum( reshape(A.',7,7,[]) ,3).' ;
  4 Kommentare
Amine Ben Ayara
Amine Ben Ayara am 26 Mai 2016
Please look at the screen shot that I have from my Matlab workspace. So my input matrix is
Matt J
Matt J am 27 Mai 2016
I have looked at it. It confirms what I said. You said you have 138040 rows, but the screenshot shows only 138039.

Melden Sie sich an, um zu kommentieren.

Kategorien

Mehr zu Data Export to MATLAB finden Sie in Help Center und File Exchange

Produkte

Community Treasure Hunt

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

Start Hunting!

Translated by