How to plot a dose-volume histogram from a 150x1 matrix in MATLAB

Join the discussion
Registration is free. Start your own thread to ask a follow-up.
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.