Calculate mean from cell array from every nth value

2 次查看(过去 30 天)
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.

采纳的回答

Image Analyst
Image Analyst 2016-7-2
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 个)

类别

Help CenterFile Exchange 中查找有关 Data Types 的更多信息

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by