Hi,
I have code to figure out the full width at half maximum for a gaussian profile. I need to find the distance between the 80 and 20 percent positions on both sides of a the gaussian profile.
I need the code to interpolate about to correctly acquire 80 and 20 percent positions on both sides of the gaussian. Any thoughts would be appreciated. I've added a spreadsheet with sample data.
Dmax = max(doseProfile(:,2));
Dmin = min(doseProfile(:,2));
x = doseProfile(:,1);
D = doseProfile(:,2);
xi = doseProfile(1,1):0.1:doseProfile(end,1);
Di = interp1(x,D,xi);
xiDoseAbove50 = xi (find(Di>(Dmax-Dmin)/2));
y = xiDoseAbove50(end)-xiDoseAbove50(1);
Best Answer