mean without stable step
조회 수: 3 (최근 30일)
이전 댓글 표시
Hi all! I need your help please!
my data are 3033 lines and 2005 columns. I want to find the mean for all columns separately but the step in lines is different. For example, i want to find the mean for the first 167 lines, then from 168 to 294, 295 to 428 and so on. what code can i write?
Thank you!
댓글 수: 0
채택된 답변
추가 답변 (3개)
Mikhail
2014년 9월 25일
You can write a=mean(M,2) - this will find mean of matrix M along each column. And then take only values you need. For 3033*2005 this is ok.
댓글 수: 2
참고 항목
카테고리
Help Center 및 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!