How to calculate the mean of a subset of the full dataset?

7 views (last 30 days)
I have a dataset that I have compiled but i want to calculate the mean call rate for a subset of the data (Individuals 1-3) using the audio start time and stop time. how would I go about just using the subset of the data and also calculating the mean? I have provided a screenshot of the dataset.

Accepted Answer

Sulaymon Eshkabilov
Sulaymon Eshkabilov on 19 Jun 2021
Use mean(), e.g:
mean(A, 1) % Columnwise
mean(A, 2) % Rowwise

More Answers (1)

Siddharth Satishchandran
Siddharth Satishchandran on 19 Jun 2021
Ok thanks! So for example, the screenshot I sent the mean call rate for the first inividual would be mean (dataset A, value for audiostop) or is it mean value for audio start, value for audiostop)?

Tags

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!