Averaging specific elements from array
Mostra commenti meno recenti
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 ....
Risposta accettata
Più risposte (1)
Image Analyst
il 25 Ago 2017
0 voti
You can use dlmread() or importdata(), and then use grpstats() if you have the Statistics and Machine Learning Toolbox.
1 Commento
@Image Analyst: you should move your answer here:
Categorie
Scopri di più su Data Type Identification in Centro assistenza e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!