Linear combination of two waves?
Sat, 03/20/2021 - 10:16 am
Hello! Pretty new to Igor here–but this is essentially what I'm trying to do:
- Take two waves (A and B) and find a linear combination of them such that they fit another wave (C)
- Determine the coefficients that make the correct linear combination of A and B
I'm having trouble finding the coefficients–I tried using MatrixLLS but don't really know how to use it. Do A, B, and C all have to be of the same dimension?
I've included my data file below (apologies for it being so messy!)–mostly take a look at Graph2. I'm trying to find linear combinations of fit_ecpeaks and fit_bdpdmso to fit fit_vlp1peaks, fit_vlp2peaks, and fit_vlp3peaks. Any help is greatly appreciated!