MATLAB: Mean of specific rows from one column

columnmeanrows

Hi,
I want to find the mean of specific rows from one column, for example if I want to find the mean of rows 1, 3, 5, 6 and 7. How do I do this? I have attached an image of what this column looks like.
Thank you.

Best Answer

This might work: mean(A([1, 3, 5, 6:7]))