Skip to content

Commit c1f7330

Browse files
authored
Update specswa.m - BUG FIX
Fixed an ignored condition: `revmin` remains original.
1 parent f9c79f4 commit c1f7330

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)