Skip to content

Commit

Permalink
Merge pull request #29 from Chiyun-CHU/patch-1
Browse files Browse the repository at this point in the history
Update specswa.m - BUG FIX
  • Loading branch information
mingsongli authored Nov 30, 2023
2 parents f9c79f4 + c1f7330 commit e3553eb
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 e3553eb

Please sign in to comment.