I have a table array 3152×25 containing data for variables that are monitored over time. In column 25 I have a vaiable 'elapsedHr' for the calculated elapsed time in hours from 0 to 72, with 40+ rows corresponding to each hourly time point. I would like to calculate the mean value of each column variable (columns 2 to 20) for each of the 73 time points and generate a new table containing this data.
MATLAB: How to select rows based on the value in a specific column and calculate the mean of those rows for all other columns to create a new table containing just the means
MATLABselect rows
Related Question
- Change a half hourly table to hourly time table
- I have an hourly meteorological data screenshot attached which i need to convert to average daily data. Since I have a long period of data it is difficult to do it in excel. If anyone knows how to code it in matlab pls let me know
- Converting Timetable to Individual Columns
- Pivot table with different operations for columns
Best Answer