Averaging specific elements from array
이전 댓글 표시
Can I average specific elements on an array while ignoring others efficiently? For example, if have a text file like so:
Freq Force etc.
5 654 ....
5 754 ....
5 645 ....
10 1029 ....
10 1175 ....
10 1110 ....
15 1354 ....
15 1375 ....
15 1390 ....
Can I easily get the result:
Freq Force etc.
5 684 ....
10 1105 ....
15 1373 ....
채택된 답변
추가 답변 (1개)
Image Analyst
2017년 8월 25일
0 개 추천
You can use dlmread() or importdata(), and then use grpstats() if you have the Statistics and Machine Learning Toolbox.
댓글 수: 1
@Image Analyst: you should move your answer here:
카테고리
도움말 센터 및 File Exchange에서 Data Type Identification에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!