3-D Bivariate Histogram

조회 수: 5 (최근 30일)
Engineering Genius
Engineering Genius 2022년 3월 28일
편집: Rena Berman 2022년 4월 8일
I have a 201 X values, where each X value has 1000 Y values. I want to create a 3-D histogram showing the distribution of the Y values across each X value as the X value increases. The number of total Y values for each X value should add up to 1000 across the distribution. I have the values saved in a cell array, where A(:,1) is a single value cell and A(:,2) are 1x1000 vectors containing the corresponding Y values. how can I create a 3D bivariate histogram to display the data?
  댓글 수: 2
Stephen23
Stephen23 2022년 3월 29일
편집: Stephen23 2022년 3월 29일
Original question by Lujain Tarek Khusheim retrieved from Google Cache:
3-D Bivariate Histogram
I have a 201 X values, where each X value has 1000 Y values. I want to create a 3-D histogram showing the distribution of the Y values across each X value as the X value increases. The number of total Y values for each X value should add up to 1000 across the distribution. I have the values saved in a cell array, where A(:,1) is a single value cell and A(:,2) are 1x1000 vectors containing the corresponding Y values. how can I create a 3D bivariate histogram to display the data?
Rena Berman
Rena Berman 2022년 4월 8일
(Answers Dev) Restored edit

댓글을 달려면 로그인하십시오.

채택된 답변

Torsten
Torsten 2022년 3월 28일
  댓글 수: 2
Torsten
Torsten 2022년 3월 28일
편집: Torsten 2022년 3월 28일
So in principle you want to put independently 201 1d-histograms one after the other in a 3d-perspective where each of the 1d-histograms represents the distribution of the 1000 y-values associated with the repective x-value ?
Torsten
Torsten 2022년 3월 28일
I'd generate the 201 empirical PDFs from the 1000 realizations (y values) of the 201 x-values and make a surface plot with x-y coordinate as basis and the values of the PDFs as z-coordinate.
To generate the PDFs, you can either use the usual "histogram" or "ksdensity".

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Histograms에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by