Skip to main content
. 2024 Sep 14;14:21471. doi: 10.1038/s41598-024-72141-4

Table 2.

Pseudo-code of the Rex based method for Z-spectra fitting and decomposition.

Define a set of LB and UB from Table 1, and start at the point x0 = LB + (UB − LB)/2
The pixel-wise decompositions of Reff and Rex for CEST are solved by nonlinear fitting function (lsqnonlin) in MATLAB
Loop for Z-spectra of each pixel
{
compute Reff and Rex fitting parameters from Eqs. (2) and (3), respectively
compute Z-spectra of Rex-line-fit from Eq. (1)
}
Obtain fitting parameters and reconstruct the Rex imaging from Z-spectra of each pixel