Page 1 of 1

question about basecorr

Posted: Sun Oct 05, 2014 1:00 pm
by chemshd
I find that the function of "basecorr" is very useful, since my spectrometer always has a problem with the baseline.
But I do not really understand what does the "Dim" input mean in the description.
Is it necessary that the input Spec is 1D array? or do I have to include the field information in the Spec?
If Spec is 1D, then what does the dim do there?

Re: question about basecorr

Posted: Fri Oct 17, 2014 1:44 pm
by Stefan Stoll
The Dimension specifies along which dimension basecorr() should apply the baseline correction. If your data is 1D, then this depends on whether it's a 1D column vector, or a 1D row vector. For the column vector, apply it along dimension 1, and for the row vector along dimension 2.