I am having a bit of a issue extracting data to show how the fluence varies through the medium vertically. I have a horizontal line, but want to get a vertical line. Could anyone help. I have attatched the script and figures for more information. Could anyone suggest how to get a vertical line extracted?
Code:
vmcmesh = createRectangularMesh(xsize, ysize, dh);
vmcmedium.absorption_coefficient = 0.56;
vmcmedium.scattering_coefficient = 68.86;
vmcmedium.scattering_anisotropy = 0.9824;
vmcmedium.refractive_index = 1.615;
vmcboundary.lightsource(20:80) = {'direct'};
solution = ValoMC(vmcmesh, vmcmedium, vmcboundary);
patch('Faces',vmcmesh.H,'Vertices',vmcmesh.r,'FaceVertexCData', solution.element_fluence, 'FaceColor', 'flat', 'EdgeColor', 'none');
title('Fluence [W/mm^2]');
linetest = solution.element_fluence;
title('Variation in Fluence (W/mm^2) versus distance travelled (mm)')
xlabel('Distance travelled by Photons (mm)')
ylabel('Fluence (W/mm^2)')
linetest = solution.element_fluence;
title('Variation in Fluence (W/mm^2) versus distance travelled (mm)')
xlabel('Distance travelled by Photons (mm)')
ylabel('Fluence (W/mm^2)')
Figure to show Light Source Travelling through Medium:
Figure to show Horizontal data line at (-5,0) to (5,0) to show how fluence intensity changes with depth penetration:
5 Comments
Direct link to this comment
https://ch.mathworks.com/matlabcentral/answers/721274-extracting-vertical-data-line-from-plot#comment_1272569
Direct link to this comment
https://ch.mathworks.com/matlabcentral/answers/721274-extracting-vertical-data-line-from-plot#comment_1272569
Direct link to this comment
https://ch.mathworks.com/matlabcentral/answers/721274-extracting-vertical-data-line-from-plot#comment_1272589
Direct link to this comment
https://ch.mathworks.com/matlabcentral/answers/721274-extracting-vertical-data-line-from-plot#comment_1272589
Direct link to this comment
https://ch.mathworks.com/matlabcentral/answers/721274-extracting-vertical-data-line-from-plot#comment_1272644
Direct link to this comment
https://ch.mathworks.com/matlabcentral/answers/721274-extracting-vertical-data-line-from-plot#comment_1272644
Direct link to this comment
https://ch.mathworks.com/matlabcentral/answers/721274-extracting-vertical-data-line-from-plot#comment_1272709
Direct link to this comment
https://ch.mathworks.com/matlabcentral/answers/721274-extracting-vertical-data-line-from-plot#comment_1272709
Direct link to this comment
https://ch.mathworks.com/matlabcentral/answers/721274-extracting-vertical-data-line-from-plot#comment_1278098
Direct link to this comment
https://ch.mathworks.com/matlabcentral/answers/721274-extracting-vertical-data-line-from-plot#comment_1278098
Sign in to comment.