Difference between revisions of "Autophase.m"
(Sync syntax/arguments/outputs with current Spinach source) |
(Update function See also links and function index membership) |
||
| (3 intermediate revisions by the same user not shown) | |||
| Line 1: | Line 1: | ||
{{DISPLAYTITLE:autophase.m}} __NOTOC__ | {{DISPLAYTITLE:autophase.m}} __NOTOC__ | ||
| − | |||
Chebyshev phase corrector for 1D NMR spectra. Views the phase profile across the spectral window as a slowly varying function and approximates it with a linear combination of low-order Chebyshev polynomials. | Chebyshev phase corrector for 1D NMR spectra. Views the phase profile across the spectral window as a slowly varying function and approximates it with a linear combination of low-order Chebyshev polynomials. | ||
==Syntax== | ==Syntax== | ||
| − | [spec,cheb_coeffs]=autophase(spec,guess) | + | [spec,cheb_coeffs]=autophase(spec,guess) |
| − | == | + | ==Parameters== |
| − | spec - 1D NMR spectrum, a complex vector | + | spec - 1D NMR spectrum, a complex vector |
| − | + | ||
| − | guess - initial guess for the Chebyshev | + | guess - initial guess for the Chebyshev |
| − | + | polynomial coefficients, radians; | |
| − | + | [phi 0 0] is a good start | |
| − | |||
==Outputs== | ==Outputs== | ||
| − | spec - phased NMR spectrum, a column vector | + | spec - phased NMR spectrum, a column vector |
| − | + | ||
| − | + | coeffs - Chebyshev polynomial coefficients of | |
| − | + | the phase profile with the window | |
| − | + | treated as [-1,1] | |
| − | |||
| − | |||
==See also== | ==See also== | ||
| − | + | [[destreak.m]], [[lpredict.m]], [[tikhoind.m]], [[tikhonov.m]], [[Import,_export,_and_visualisation]] | |
| − | [[Import,_export,_and_visualisation | ||
| − | |||
''Version 2.11, authors: [[Ilya Kuprov]]'' | ''Version 2.11, authors: [[Ilya Kuprov]]'' | ||
Latest revision as of 18:34, 6 June 2026
Chebyshev phase corrector for 1D NMR spectra. Views the phase profile across the spectral window as a slowly varying function and approximates it with a linear combination of low-order Chebyshev polynomials.
Syntax
[spec,cheb_coeffs]=autophase(spec,guess)
Parameters
spec - 1D NMR spectrum, a complex vector
guess - initial guess for the Chebyshev
polynomial coefficients, radians;
[phi 0 0] is a good start
Outputs
spec - phased NMR spectrum, a column vector
coeffs - Chebyshev polynomial coefficients of
the phase profile with the window
treated as [-1,1]
See also
destreak.m, lpredict.m, tikhoind.m, tikhonov.m, Import,_export,_and_visualisation
Version 2.11, authors: Ilya Kuprov