Calculate mean from cell array from every nth value
2 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
David du Preez
le 2 Juil 2016
Réponse apportée : Image Analyst
le 2 Juil 2016
I have a cell array of 8401x11 and in the first line are the column headings. I want skip the first 15 lines after the headings and then calculate the average of every 24th cell in column 6 and 9.
0 commentaires
Réponse acceptée
Image Analyst
le 2 Juil 2016
Make it easy for us and attach some sample data, for example by attaching a .mat file with the paper clip icon.
Some untested code is:
ca = originalCellArray(16:24:end, [6,9])
columnMeans = mean(cell2mat(ca));
0 commentaires
Plus de réponses (0)
Voir également
Catégories
En savoir plus sur Data Types dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!