LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Fitting an XY data with lorenzian peak to know the FWHM of the peak

I am a new user to Labview having Labview 2013 version. I need to fit the attached X-Y data to a lorenzian peak profile to determine the FWHM value. Many of the previous liks have some examples but all those examples are giving me error saying singular matrix. Please help.

ASarkar

0 Kudos
Message 1 of 5
(2,813 Views)

What examples did you try? Show us your code that gives you a singular matrix. Did you provide initial guesses for the correct number of parameters?

0 Kudos
Message 2 of 5
(2,798 Views)

You probably just need to give it reasonable initial guesses, e.g. as follows:

 

 

 

I am sure you could come up with an automatic algorithm to make good guesses based on the position of ymax, etc.

0 Kudos
Message 4 of 5
(2,788 Views)

Than you very much. It is working. You are awesome.

0 Kudos
Message 5 of 5
(2,774 Views)