Plotting a Dose-Volume Histogram from Matrix of Values

Click For Summary

Discussion Overview

The discussion centers around plotting a dose-volume histogram using a matrix of values in MATLAB. Participants are exploring the appropriate methods and parameters for generating the histogram from the provided data.

Discussion Character

  • Technical explanation
  • Homework-related

Main Points Raised

  • One participant presents a matrix of values and seeks assistance in plotting a dose-volume histogram.
  • Another participant requests additional information about the user's approach and the specific MATLAB version being used.
  • A participant shares their current MATLAB code for plotting, indicating they have sorted the matrix and attempted to set the x-axis limits but are unsure if it is correct.
  • There is a question regarding the desired edges of the histogram bins, suggesting that this detail is important for proper histogram representation.

Areas of Agreement / Disagreement

The discussion remains unresolved, with participants seeking clarification and additional details before reaching any conclusions.

Contextual Notes

There are limitations regarding the clarity of the desired histogram bin edges and the specific MATLAB version, which may affect the implementation of the plotting code.

linger
Messages
2
Reaction score
0
Hi, I have a matrix 150x1 with values between 5.321 to 13.226 and I want to use the matrix and plot a dose-volume histogram (https://en.wikipedia.org/wiki/Dose-volume_histogram).
Can someone help me.
 
Physics news on Phys.org
Sure. Do you have some more information you could share about this?
 
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?
 

Similar threads

  • · Replies 4 ·
Replies
4
Views
4K
  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 12 ·
Replies
12
Views
2K
  • · Replies 1 ·
Replies
1
Views
4K
  • · Replies 3 ·
Replies
3
Views
2K
  • · Replies 32 ·
2
Replies
32
Views
4K
  • · Replies 4 ·
Replies
4
Views
2K
  • · Replies 1 ·
Replies
1
Views
3K
  • · Replies 5 ·
Replies
5
Views
4K
  • · Replies 5 ·
Replies
5
Views
3K