dividing a 3D plot into bins

5 ビュー (過去 30 日間)
shai Heiman
shai Heiman 2019 年 3 月 12 日
編集済み: Sai Bhargav Avula 2020 年 2 月 18 日
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:
  1. divide the 3D area to bins
  2. 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)

回答 (1 件)

Sai Bhargav Avula
Sai Bhargav Avula 2020 年 2 月 18 日
編集済み: Sai Bhargav Avula 2020 年 2 月 18 日
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!

カテゴリ

Help Center および File ExchangeAnnotations についてさらに検索

タグ

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by