Plotting a Dose-Volume Histogram from Matrix of Values

Join the discussion
Ask a follow-up here, or get your own question answered by working scientists, mathematicians and engineers — people, not an autocomplete.
Real named experts · corrections over time · the nuance an AI answer skips
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.