Hi,
I found the defval.m
code. From the functions I uploaded, it looks like all it was doing was
defining the values of the constant variables, now wehether that is the
issue why it was not running correct I do not know. But maybe the
solution is more simple.
In the xample I uploaded, all the
key things are available, so there are no other toolbox things required.
Defval is clearly a Matlab intrinsic function. As I mentioned before,
values for 'g' and 'G' can be declared normally without the need for the
defval function.
If you can figure out how the plot was
created, from those two functions, that would be a big help. If I
ignored the defval in the code and replaced it as R=... or G=... etc, it
sort of runs but not to generate the output as pected from the image
result. Not having worked with Matlab before, I am still learning the
procedures with Octave; I have come from a Fortran 95 background. Since a
lot of geophysics code is in Matlab, I thought try Octave and see how
it copes.