Using mean function to take average of 4 columns for every row of data
Show older comments
I'm just starting to get familiar with Matlab's mean function, but I'm confused as to how I can use it to get an average of multiple columns and display the result for every row of data. Details are as follows:
I have a 5000x14 matrix of data
I would like to average columns 7-10 for each row WITHOUT the use of a for loop. This should result in a 5000x1 matrix.
Some guidance would be very much appreciated.
Accepted Answer
More Answers (0)
Categories
Find more on Descriptive Statistics in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!