dividing a 3D plot into bins
7 views (last 30 days)
Show older comments
Hi everybody. I am relatively new to matlab and I have a 3D plot, or more accurate, a 4D plot when the 4th dimention appears as the color. my plot contains information from different patients and what I want to do with it is this:
- divide the 3D area to bins
- calculate the average value of all the points in each been (across patients). this average is to be applies to the forth dimention.
this is a part of my plot (cant share it all)
0 Comments
Answers (1)
Sai Bhargav Avula
on 18 Feb 2020
Edited: Sai Bhargav Avula
on 18 Feb 2020
Hi,
You can use the histcounts and to use the accumarray over the bin values to divide the data into 3D bins.
Hope this helps!
0 Comments
See Also
Categories
Find more on Annotations 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!