How to list the values that are contained within each bin
Show older comments
Hi! I have a list of data points (x) that I want to organize by another set of data points (y). I have used the histc function to bin x by y and calculate the mean for each bin, but now I'd like to see what the actual values are in each bin and perhaps even export these values into different columns in excel. I have the xlswrite function working, but I can't seem to access the values of (x) within each y. Is there a function I could use to see these?
Thanks!!! Kristin
Accepted Answer
More Answers (2)
Categories
Find more on Logical in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!