Hello,

I would like to get the average of some data only if the size of the sample is larger than two. So, if the sample size is smaller or equal to two, then it will not average. Thanks in advance.

Skip to content# MATLAB: I would like to get the average of some data only if the sample size is larger than two.

###### Related Question

Hello,

I would like to get the average of some data only if the size of the sample is larger than two. So, if the sample size is smaller or equal to two, then it will not average. Thanks in advance.

- Splitting a cell in two.
- How should I calculate power spectral density of signal with too high sampling rate
- Breaking a long line of code into two.
- How to calculate the standard deviation of a LARGE set of values without using the’ std’ or ‘mean’ commands
- How i write SHA-512 algoritm matlab code? give me sugestion pls
- How to get average of an array except considering the last element of the array
- How to choose the color map

## Best Answer