# Binning data in MATLAB 23

Posted by **Doug Hull**,

**x**and

**y**, bin the

**x**values as if with a histogram. Then take the corresponding

**y**values in each bin and take the mean. This uses HISTC and indexing. Mostly this is applying skills from earlier videos.

## 23 CommentsOldest to Newest

**1**of 23

**2**of 23

**3**of 23

**4**of 23

**5**of 23

**6**of 23

**7**of 23

**8**of 23

**9**of 23

**10**of 23

**11**of 23

**12**of 23

**13**of 23

**14**of 23

**15**of 23

**16**of 23

**17**of 23

**18**of 23

**19**of 23

**20**of 23

**21**of 23

**22**of 23

**23**of 23

## Recent Comments