Plotting a Dose-Volume Histogram from Matrix of Values

Join the discussion
Registration is free. Ask a follow-up in this thread, or start your own.
3 replies · 2K views
Physics news on Phys.org
no, not really, but have tried to solve it and have come this far

D = sort(D); %D matrix 150x1
x= [150:-1:1]*100/150;
plot(D, x);
xlim([0,14]);

have I done it right so far?
the graph plots only from the smallest x value 5.321 to the highest 13.226 and I want it to draw from 0 to 14.
 
Which release of MATLAB are you using?

Also, do you have an idea of what you want the edges of the histogram bins to be?