--
Cheers,
Peter.
I would suggest you fit a Gaussian to the measured data, then once you
have the parameters of the line of best fit, deducing the FWHM should
not be too hard - just solve for the two points where the signal is half
the maximum.
A Gaussian would be my first thought, but it might be more of a top-hat
profile. How well does a Gaussian fit?
It is a top-hat profile, so how exactly do I do that? :(
But if you have to get the FWHM many times or need a more
precise (or reproducible) method I would suggest fitting
the beam to a functional form that resembles the beam...my
first guess is to just use a hypergaussian function.
A = 1; % amplitude
x = linspace(-1,1,128);
x0 = 0; % center position
w = .25; % width parameter
n = 3; % squareness parameter
H = A*exp(-((x-x0)./w).^(2*n));
plot(x,H)
For increasing positive integer values of n the function
gets more and more shaped like a top hat and less like a
gaussian. I don't do much fitting in Matlab, but guess you
would want to fit the squareness parameter n in addition to
the usual parameters A, x0, w.
Hope that helps, good luck.
J
excalibur...@gmail.com wrote in message <5d1ab3d5-
de63-4444-ae5...@m3g2000hsc.googlegroups.com>...
Thanks. Will try that!
---
cheers,
Peter.