Finding intersection between line plot and horizontal line
I’ve been trying to find the full width at half max (FWHM) some data points. There are about 1000 data points (intensity on the y and angle on the x), and when I plot them, there is a line drawn to connect all the points. My current method for calculating the FWHM is to use the find function and locate the points in the original data that are closest to the half max.
Is it possible to use the line drawn to connect all the points and find the intersection between that and a horizontal line at the half max? I’ve tired using the find function like:
intersection = find(intensity == halfMax);
However this returns an empty vector (unsurprisngly). If there was a way to access the points on the line that connect my original data, this would make it a more accurate calculation.
The attached graph is semilogy, please let me know if you know it this is possible or need clarification.I’ve been trying to find the full width at half max (FWHM) some data points. There are about 1000 data points (intensity on the y and angle on the x), and when I plot them, there is a line drawn to connect all the points. My current method for calculating the FWHM is to use the find function and locate the points in the original data that are closest to the half max.
Is it possible to use the line drawn to connect all the points and find the intersection between that and a horizontal line at the half max? I’ve tired using the find function like:
intersection = find(intensity == halfMax);
However this returns an empty vector (unsurprisngly). If there was a way to access the points on the line that connect my original data, this would make it a more accurate calculation.
The attached graph is semilogy, please let me know if you know it this is possible or need clarification. I’ve been trying to find the full width at half max (FWHM) some data points. There are about 1000 data points (intensity on the y and angle on the x), and when I plot them, there is a line drawn to connect all the points. My current method for calculating the FWHM is to use the find function and locate the points in the original data that are closest to the half max.
Is it possible to use the line drawn to connect all the points and find the intersection between that and a horizontal line at the half max? I’ve tired using the find function like:
intersection = find(intensity == halfMax);
However this returns an empty vector (unsurprisngly). If there was a way to access the points on the line that connect my original data, this would make it a more accurate calculation.
The attached graph is semilogy, please let me know if you know it this is possible or need clarification. fwhm, data plot MATLAB Answers — New Questions