How to take mean of integers value?
1 view (last 30 days)
Show older comments
I want to take mean of 5 column. How can I ? please find the attachment of the data.
Accepted Answer
Scott MacKenzie
on 12 Jun 2021
Edited: Scott MacKenzie
on 12 Jun 2021
You need to use braces because your data are in a table:
mean(LSinclination{:,5})
If it's just the integer values you want the mean of (as suggested in your question title), then
intLogical = mod(LSinclination{:,5},1)==0
mean(LSinclination{intLogical,5});
0 Comments
More Answers (0)
See Also
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!