how can i convert the 1 sec file to 1 min by averageing the reading of each 60 rows and the program repeat it every 60 rows?
조회 수: 1 (최근 30일)
이전 댓글 표시
채택된 답변
dpb
2014년 8월 23일
The Matlab "trick" for this is to rely on memory storage order...
x=mean(reshape(x,60,[])).';
leaves column vector of the averages of the 60-element columns created by the reshape operation. If you number of elements isn't precisely divisible by 60, you'll need to account for it in the second argument when reshape to the multiple or truncate first.
댓글 수: 5
dpb
2014년 8월 23일
It would, but why not use the facilities of Matlab array operations? It's the whole point of Matlab.
추가 답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Logical에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!