in matlab, calculate mean in a part of one column where another column satisfies a condition
- 阅读更多 关于 in matlab, calculate mean in a part of one column where another column satisfies a condition
问题 I'm quite new to matlab, and I'm curious how to do this: I have a rather large (27000x11) matrix, and the 8th column contains a number which changes sometimes but is constant for like 2000 rows (not necessarily consecutive). I would like to calculate the mean of the entries in the 3rd column for those rows where the 8th column has the same value. This for each value of the 8th column. I would also like to plot the 3rd column's means as a function of the 8th column's value but that I can do if