Hi Juan,
I moved a copy of defval.m into the same folder as the two main files (coheref2.m and forsyth.m), I fixed the references to values that were not declared in forsyth.m, and it got a little farther along -
octave:9> coheref2
ans = [](0x0) ---------> these look odd!
ans = [](0x0)
ans = [](0x0)
ans = [](0x0)
ans = [](0x0)
ans = [](0x0)
error: 'xver' undefined near line 63 column 6
error: called from:
error: c:\matlab\functions\simmons_matlab\forsyth.m at line 63, column 3 -------> if xver==1
error: c:\matlab\functions\simmons_matlab\coheref2.m at line 33, column 2 -------> C=forsyth(Te,lambda,f2,r);
octave:9>
Lines 62-65 forsyth.m
xver=0
if xver==1
disp(sprintf('E= %5.3g; v= %5.3f',E,v))
end
The working directory now has all three files in place - I cannot see what else could be missing. I have attached the updated forsyth.m
Changes made : defval('g',9.81);
G=6.67e-11;
It is looking more like the issue is in forsyth.m ?
All rather confusing
Lester