Difference between revisions of "Autophase.m"
(Created page with "{{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 approx...") |
(Sync syntax/arguments/outputs with current Spinach source) |
||
| 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) | |
==Arguments== | ==Arguments== | ||
| − | + | spec - 1D NMR spectrum, a complex vector | |
| − | + | ||
| − | guess - initial guess for the Chebyshev | + | guess - initial guess for the Chebyshev polynomi- |
| − | + | al coefficients, radians. [phi 0 0] is a | |
| − | + | good start, where phi is the zero-order | |
| + | phase correction guess. | ||
==Outputs== | ==Outputs== | ||
| − | + | spec - phased NMR spectrum, a column vector | |
| − | + | ||
| − | + | coeffs - Chebyshev polynomial coefficients of the | |
| − | + | phase profile across the spectrum with | |
| − | + | the window treated as a [-1,1] interval | |
| + | |||
| + | ilya.kuprov@weizmann.ac.il | ||
==See also== | ==See also== | ||
| + | |||
[[Import,_export,_and_visualisation#Miscellaneous_data_processing|Miscellaneous data processing]] | [[Import,_export,_and_visualisation#Miscellaneous_data_processing|Miscellaneous data processing]] | ||
''Version 2.11, authors: [[Ilya Kuprov]]'' | ''Version 2.11, authors: [[Ilya Kuprov]]'' | ||
Revision as of 14:05, 5 April 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)
Arguments
spec - 1D NMR spectrum, a complex vector
guess - initial guess for the Chebyshev polynomi-
al coefficients, radians. [phi 0 0] is a
good start, where phi is the zero-order
phase correction guess.
Outputs
spec - phased NMR spectrum, a column vector
coeffs - Chebyshev polynomial coefficients of the
phase profile across the spectrum with
the window treated as a [-1,1] interval
ilya.kuprov@weizmann.ac.il
See also
Version 2.11, authors: Ilya Kuprov