필터 지우기
필터 지우기

How to do a Matrix Aggregation.

조회 수: 4 (최근 30일)
Amine Ben Ayara
Amine Ben Ayara 2016년 5월 23일
댓글: Matt J 2016년 5월 27일
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.

답변 (1개)

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

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 Data Export to MATLAB에 대해 자세히 알아보기

제품

Community Treasure Hunt

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

Start Hunting!

Translated by