3-D Bivariate Histogram
7 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
Engineering Genius
el 28 de Mzo. de 2022
Editada: Rena Berman
el 8 de Abr. de 2022
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 comentarios
Stephen23
el 29 de Mzo. de 2022
Editada: Stephen23
el 29 de Mzo. de 2022
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?
Respuesta aceptada
Torsten
el 28 de Mzo. de 2022
Is it this what you want ?
2 comentarios
Torsten
el 28 de Mzo. de 2022
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".
Más respuestas (0)
Ver también
Categorías
Más información sobre Histograms en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!