Stuart’s MATLAB Videos

Watch and Learn

Binning data in MATLAB

I have been reading the MATLAB questions in Stack Overflow for a few weeks, and here was a really good question that came through. With two vectors, 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.
Video Player is loading.
Current Time 0:00
Duration 4:54
Loaded: 3.39%
Stream Type LIVE
Remaining Time 4:54
 
1x
  • Chapters
  • descriptions off, selected
  • captions off, selected
  • en (Main), selected
    I really like the Stack Overflow community, and am glad to see the MATLAB questions are being discussed there. Do you have any favorite communities, apart from MATLAB Central, that you like to use?
    |
    • print

    Comments

    To leave a comment, please click here to sign in to your MathWorks Account or create a new one.

    Loading...
    Go to top of page