Skip to content

Commit

Permalink
Update specswa.m - BUG FIX
Browse files Browse the repository at this point in the history
Fixed an ignored condition: `revmin` remains original.
  • Loading branch information
CinnabarCHU authored Nov 26, 2023
1 parent f9c79f4 commit c1f7330
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions code/package/swa/specswa.m
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@
end
end

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

0 comments on commit c1f7330

Please sign in to comment.