Code covered by the BSD License  

Highlights from
fwhm

4.76923

4.8 | 13 ratings Rate this file 158 Downloads (last 30 days) File Size: 1.49 KB File ID: #10590

fwhm

by Patrick Egan

 

31 Mar 2006 (Updated 05 Apr 2006)

To calculate the full-width at half-maximum of an input.

| Watch this File

File Information
Description

width = fwhm(x,y)

Full-Width at Half-Maximum (FWHM) of the waveform y(x) and its polarity.

The FWHM result in 'width' will be in units of 'x'

The code was developed by an unknown author.

MATLAB release MATLAB 6.5 (R13)
Tags for This File  
Everyone's Tags
Tags I've Applied
Add New Tags Please login to tag files.
Comments and Ratings (14)
20 Apr 2006 zm o

This file's suitable to use for experimental datas.

17 Jan 2007 Igor K

great job!

18 Jan 2007 Sue S

Very easy to use!

19 May 2007 Rajiv Bharadwaj

Great Job !

28 May 2007 Ketki V

Fantastic! Im so glad I found this!

12 Oct 2007 bioguider bioguider

easy to use

06 Nov 2007 John Smith

Superb

18 Aug 2008 Nathir Rawashdeh

It does not work for noisy y(x). It keeps saying the peak is an impulse.

06 May 2010 Brian

Need to add y=y-min(x) at beginning to find fwhm of data not going to zero

05 Feb 2011 Amr Sadek

very easy to use, thank you

27 Feb 2011 Tom Phillips

Thanks

01 Apr 2011 Donald

Simple and easy to read. I modified it to search for the falling edge from the end of the array instead of from the peak because my pulses have high overshoot at the rising/falling edges.

23 Nov 2011 Robert  
07 Apr 2012 Nicolas

Brilliant, saved me a lot of time!

Please login to add a comment or rating.
Updates
03 Apr 2006

1) Remove line:
[c_max,k_index] = max(y);

2) Replaced two two "if-end" conditions by "if-else-end" condition

3) The output argument "c" was never returned, hence it has been removed.

03 Apr 2006

1) Remove line:
[c_max,k_index] = max(y);

2) Replaced two two "if-end" conditions by "if-else-end" condition

3) The output argument "c" was never returned, hence it has been removed.

05 Apr 2006

No need to reassign variables 'x' and 'y'.

Remove last 'else' condition.

Tag Activity for this File
Tag Applied By Date/Time
dsp Patrick Egan 22 Oct 2008 08:21:08
fullwidth at halfmaximum Patrick Egan 22 Oct 2008 08:21:08
fullwidth at halfmaximum Abhi Regmi 27 Jul 2010 09:26:33
fullwidth at halfmaximum Jason 13 Oct 2010 11:21:15
fullwidth at halfmaximum D Khalid 19 Nov 2010 11:51:38
dsp D Khalid 19 Nov 2010 11:51:40
fullwidth at halfmaximum Marc 29 Nov 2010 10:59:06
fullwidth at halfmaximum Ashish Chaudhary 10 Mar 2011 13:09:55
fullwidth at halfmaximum Will 01 Sep 2011 12:16:21
fullwidth at halfmaximum Ricardo 29 Nov 2011 23:10:56
fullwidth at halfmaximum maria 09 Dec 2011 07:15:44
dsp Zohreh 12 Mar 2012 17:00:53

Contact us at files@mathworks.com