3D dose plot and color wash

7 views (last 30 days)
Marco Tam
Marco Tam on 16 Aug 2022
Commented: KSSV on 16 Aug 2022
I am a beginner in matlab and now doing a project in measuring the dose at different coordinates x y z. Now I would like to plot a 3D scatter plot with different color representing the dose level and probably a color wash generated from the plot. I have input the data to an excel spreadsheet with 4 columns x y z dose. Thank you in advance for your help.

Accepted Answer

KSSV on 16 Aug 2022
T = readtable('myfile.xlsx') ;
KSSV on 16 Aug 2022
T = readtable('https://in.mathworks.com/matlabcentral/answers/uploaded_files/1099290/test%20dose.xlsx') ;
Warning: Column headers from the file were modified to make them valid MATLAB identifiers before creating variable names for the table. The original column headers are saved in the VariableDescriptions property.
Set 'VariableNamingRule' to 'preserve' to use the original column headers as table variable names.
X = T.X ;
Y = T.Y ;
Z = T.Z ;
V = T.Dose_nGy_ ;
dt = delaunayTriangulation(X,Y,Z) ;
patch('faces',dt.ConnectivityList,'vertices',[X Y Z],'facevertexcdata',V,'facecolor','interp','edgecolor','k') ;
Also have a look on slice

Sign in to comment.

More Answers (0)


Find more on Weather and Atmospheric Science in Help Center and File Exchange




Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!