Skip to content

Commit

Permalink
Update getSHrotMtx.m
Browse files Browse the repository at this point in the history
Newer versions of Matlab do not permit variables to have the same name as functions, in the same scope. Renaming the function "W" to "Wf" (or anything else) fixes the error.
  • Loading branch information
leomccormack authored Jun 16, 2020
1 parent 7e3e698 commit 57478e2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions getSHrotMtx.m
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@
% computes Eq.8.1
if u~=0, u = u*U(l,m,n,R_1,R_lm1); end
if v~=0, v = v*V(l,m,n,R_1,R_lm1); end
if w~=0, w = w*W(l,m,n,R_1,R_lm1); end
if w~=0, w = w*Wf(l,m,n,R_1,R_lm1); end
R_l(m+l+1,n+l+1) = u + v + w;
end
end
Expand Down Expand Up @@ -150,7 +150,7 @@

end

function [ret] = W(l,m,n,R_1,R_lm1)
function [ret] = Wf(l,m,n,R_1,R_lm1)

if (m==0)
error('should not be called')
Expand Down

0 comments on commit 57478e2

Please sign in to comment.