Skip to content

Commit 1f4ad6b

Browse files
committed
Bug fix in AlignUsingPeak.m
1 parent 8c35a0d commit 1f4ad6b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

AlignUsingPeak.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@
6767
cub = find(min(z) == z);
6868
freqrange = MRS_struct.spec.freq(clb:cub);
6969
CrMeanSpec = mean(AllFramesFTrealign(clb:cub,:),2);
70-
CrMeanSpecFit = FitCr(freqrange, CrMeanSpec, Init, MRS_struct.p.LarmorFreq);
70+
CrMeanSpecFit = FitCr(freqrange, CrMeanSpec, Init, MRS_struct.p.LarmorFreq(MRS_struct.ii));
7171
MRS_struct.out.CrFWHMHz(MRS_struct.ii) = CrMeanSpecFit(2);
7272

7373
% Reject any point where the fit params - area, fwhm, phase

0 commit comments

Comments
 (0)