[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Getting Matlab geophysics code running in Octave
From: |
Ben Abbott |
Subject: |
Re: Getting Matlab geophysics code running in Octave |
Date: |
Sun, 04 Aug 2013 19:41:31 -0400 |
On Aug 4, 2013, at 12:29 PM, Lester Anderson wrote:
> 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.
>
> Hopefully I have not gone into the deep end !
>
> Cheers
> Lester
I think you got the wrong defval.m. The one your looking for is available from
the same page you gave a link to earlier.
http://geoweb.princeton.edu/people/simons/DOTM/defval.m
Ben
- Re: Getting Matlab geophysics code running in Octave, (continued)
- Re: Getting Matlab geophysics code running in Octave, Ben Abbott, 2013/08/04
- Re: Getting Matlab geophysics code running in Octave, Lester Anderson, 2013/08/04
- Re: Getting Matlab geophysics code running in Octave, Juan Pablo Carbajal, 2013/08/04
- Re: Getting Matlab geophysics code running in Octave, Juan Pablo Carbajal, 2013/08/04
- Re: Getting Matlab geophysics code running in Octave, Lester Anderson, 2013/08/04
- Re: Getting Matlab geophysics code running in Octave, Juan Pablo Carbajal, 2013/08/04
- Re: Getting Matlab geophysics code running in Octave, Lester Anderson, 2013/08/04
- Re: Getting Matlab geophysics code running in Octave,
Ben Abbott <=
- Re: Getting Matlab geophysics code running in Octave, Lester Anderson, 2013/08/05
- Re: Getting Matlab geophysics code running in Octave, Lester Anderson, 2013/08/05
- Re: Getting Matlab geophysics code running in Octave, Lester Anderson, 2013/08/05