Skip to content

Commit e3553eb

Browse files
authored
Merge pull request #29 from Chiyun-CHU/patch-1
Update specswa.m - BUG FIX
2 parents f9c79f4 + c1f7330 commit e3553eb

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

code/package/swa/specswa.m

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,7 @@
156156
end
157157
end
158158

159-
if(revmin == 0)
159+
if(revmin <= rev1 && revmin <= rev2) % BUG FIX - HY ZHU, 27 NOV 2023
160160
if(rmsemin > rmsef1)
161161
rmsemin=rmsef1;
162162
winfinal=winwidth;
@@ -351,4 +351,4 @@
351351
for i = 1:nout
352352
swa(i) = 10.0 ^ fitsp(i);
353353
end
354-
swa = swa(:); % Ensure swa is a column vector
354+
swa = swa(:); % Ensure swa is a column vector

0 commit comments

Comments
 (0)