SNU-LIST / chi-separation

Code for magnetic susceptibility source separation
19 stars 6 forks source link

Error in Preprocessing4Phase #2

Open NNmri opened 1 year ago

NNmri commented 1 year ago

Hello developers, I downloaded the separation code and I faced a problem early during the phase preprocessing step. Using GUI or Chisep_script, the processing will stop at this phase preprocessing step referring to an error during the call for "rescale" function, as shown below:

Error using rescale Too many input arguments. Error in Preprocessing4Phase

Not sure if the "rescale" is the MATLAB built-in function or other function that interferes with the MATLAB one. Since the output of the "Preprocessing4Phase" function is [phase, N_std] , I assume it is doing a nonlinear fit using MEDI "Fit_ppm_complex" but with some sort of scaling before the fit (probably for the magnitude?).

I would appreciate your help in this regard.