Create 3D histogramm from cell array containing total numbers and x-,y-coordinates

조회 수: 7 (최근 30일)
I have a cell array C = cell(815,2,14) with data as in the example below.
The first column represents an observation while the second column represents the number of occurences of this observation. The observation consists of two float values which represent the coordinates inside a 3D bar plot. Both axis of the 3D bar have an interval from [0,1].
I want to create a 3d bar plot using the coordinates of the 1st column and use the number of occurences of the second column as the z-axis.
The plot should look like this:
Example cell array:
C(:,:,1) =
'[1 1]' [511553]
'[0 0]' [508759]
'[0.85 0.95]' [ 1675]
'[0.7 0.75]' [ 582]
'[0.55 0.75]' [ 359]
....
C(:,:,2) =
'[1 1]' [621836]
'[0 0]' [571582]
'[0.85 0.95]' [ 2134]
'[0.7 0.75]' [ 832]
'[0.55 0.75]' [ 234]
....
.
.
.
....
C(:,:,14) =
'[1 1]' [511553]
'[0 0]' [508759]
'[0.76 0.95]' [ 1675]
'[0.71 0.72]'
[ 582]
'[0.65 0.84]' [ 359]
....

답변 (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