Skip to main content
1-Visitor
November 11, 2017
Solved

Deconvolution of spectra

  • November 11, 2017
  • 4 replies
  • 2790 views
Hello guys, I need help with deconvolution of experimental spectra (~400 of them) that contains two peaks - one is Lorentz and second is Breit-Wigner-Fano shaped. Files are attached. Can this be done in Mathcad? Any help is appreciated. Thanks
Best answer by Fred_Kohlhepp

This quick patch is far from perfect, but it gives you a place to start.

4 replies

23-Emerald I
November 14, 2017

If I understand, you want to execute this sheet for 400 different files.  You can do this in Mathcad, but it would be far easier in MatLab. 

You can write a program in Mathcad to combine your operations, this would take the raw file and return the array S:

program.PNG

You would need to write a second function to finish the task (or add to this one.)

 

Then an array of 400 file names, and a program that executes a loop that reads each file, calls the function above, and writes out a file with your results.

 

Not simple.

zjv1-VisitorAuthor
1-Visitor
November 14, 2017
Thanks for the help. There is only one file that contains all 400 spectra. In a mathcad file FF is actually a matrix that contains one column of x values and 400 columns representing y values. So matrix FF actually contains all the data of 400 spectra (filtered and selected) that should be deconvoluted.
23-Emerald I
November 15, 2017

This quick patch is far from perfect, but it gives you a place to start.