Borrar filtros
Borrar filtros

how to plot cumolative ovh histogram for number of voxels vs.distances?

2 visualizaciones (últimos 30 días)
i have txt file containg the whole number of voxels for one oragn and also it has the distance to the target, i Need to plot Overlapped Volume histogram (OVH), using distance vs.number of voxels,i used the following it wroks but i still believe that i did not inclue the number of voxels inside the plot on the y axis, how can i do that?
distance=Bladder_dist_dose(:,1);%extract 1st column of distance values from txt file distance_axis= linspace(min(distance),max(distance),10);%binned into 10 bins disthist = histc ( distance, distance_axis); %%assign distance values to bin sum_dist = cumsum(disthist) ;%%cumulative sum dist_ovh = sum_dist/max(sum_dist);%%by this division i i got the scaling of y axis from 0-1. plot(distance_axis',dist_ovh, 'b', 'linewidth', 2); title('OVH') ylabel('number of Voxels') xlabel('Distance (cm)')
do not i Need to do include the number of voxels, i did the following; %%NUMBER OF VOXEL AXIS x=Bladder_dist_dose(:,4); y=Bladder_dist_dose(:,5); z=Bladder_dist_dose(:,6);%%extract x,z,y values voxels=x.*y.*z; %%volume of each voxel number_of_voxels_axis= linspace(min(voxels),max(voxels),10);%%binned into 10 bins voxelhist = histc ( voxels, number_of_voxels_axis);%%assigned voxels into bins sum_voxels = cumsum(voxelhist); now i stucked , i do not know to Combine them on the same OVH ??

Respuestas (0)

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!

Translated by