Look at the code for calculating geoDiff_f
In the 78 row,''n = cfdUnit(Sf);''
In the 79 row,''e = cfdUnit(CF);''
In the 81 row, ''CF_limited = max(dot(n',CF'), 0.05*cfdMag(CF)')';''
In the 84 row,''magCF = cfdMag(CF_limited);''
In the 105 row,''geoDiff_f = cfdMag(Ef)./magCF;''
I think the CF_limited is wrong, it should be ''CF_limited = max(dot(e',CF'), 0.05*cfdMag(CF)')';''
Look at the code for calculating geoDiff_f
In the 78 row,''n = cfdUnit(Sf);''
In the 79 row,''e = cfdUnit(CF);''
In the 81 row, ''CF_limited = max(dot(n',CF'), 0.05*cfdMag(CF)')';''
In the 84 row,''magCF = cfdMag(CF_limited);''
In the 105 row,''geoDiff_f = cfdMag(Ef)./magCF;''
I think the CF_limited is wrong, it should be ''CF_limited = max(dot(e',CF'), 0.05*cfdMag(CF)')';''