|
View:
New views
3 Messages
—
Rating Filter:
Alert me
|
|
|
feval bug in 3.2.3Hi Octave team,
I'm using octave 3.2.3 on amd64 (compiled from source) and have problems with the feval function. The code without feval works (1), while it does not work with eval (2): 1. fprintf('calling exp_galaxy(PAR_config)\n') ; exp_galaxy(PAR_config) ; 2. Exp='exp_galaxy' fprintf('calling feval(''%s'', PAR_config)\n', Exp) ; PAR_exp = feval(Exp, PAR_config) ; The function exp_galaxy is in the same source file as the code above (a local function). feval works as expected in octave 3.0.4, but not in 3.2.3. (I did not try versions between these versions as I could not get them compiled.) Thanks a lot for your help! All the best, Gunnar _______________________________________________ Bug-octave mailing list Bug-octave@... https://www-old.cae.wisc.edu/mailman/listinfo/bug-octave |
|
|
Re: feval bug in 3.2.3Hi again,
I tried it now with other octave versions. It works with 3.0.4 and 3.0.5. It does not work with 3.2.0, 3.2.2 and 3.2.3. Hth, Gunnar On 07.11.2009, at 18:07, Gunnar Raetsch wrote: > Hi Octave team, > > I'm using octave 3.2.3 on amd64 (compiled from source) and have > problems with the feval function. > The code without feval works (1), while it does not work with eval > (2): > > 1. fprintf('calling exp_galaxy(PAR_config)\n') ; > exp_galaxy(PAR_config) ; > > 2. Exp='exp_galaxy' > fprintf('calling feval(''%s'', PAR_config)\n', Exp) ; > PAR_exp = feval(Exp, PAR_config) ; > > The function exp_galaxy is in the same source file as the code above > (a local function). > > feval works as expected in octave 3.0.4, but not in 3.2.3. > (I did not try versions between these versions as I could not get > them compiled.) > > Thanks a lot for your help! > > All the best, > > Gunnar > > > > _______________________________________________ Bug-octave mailing list Bug-octave@... https://www-old.cae.wisc.edu/mailman/listinfo/bug-octave |
|
|
Re: feval bug in 3.2.3On Sat, Nov 7, 2009 at 6:54 PM, Gunnar Rätsch
<Gunnar.Raetsch@...> wrote: > Hi again, > > I tried it now with other octave versions. It works with 3.0.4 and > 3.0.5. > It does not work with 3.2.0, 3.2.2 and 3.2.3. > > Hth, Gunnar > > > On 07.11.2009, at 18:07, Gunnar Raetsch wrote: > >> Hi Octave team, >> >> I'm using octave 3.2.3 on amd64 (compiled from source) and have >> problems with the feval function. >> The code without feval works (1), while it does not work with eval >> (2): >> >> 1. fprintf('calling exp_galaxy(PAR_config)\n') ; >> exp_galaxy(PAR_config) ; >> >> 2. Exp='exp_galaxy' >> fprintf('calling feval(''%s'', PAR_config)\n', Exp) ; >> PAR_exp = feval(Exp, PAR_config) ; >> >> The function exp_galaxy is in the same source file as the code above >> (a local function). >> >> feval works as expected in octave 3.0.4, but not in 3.2.3. >> (I did not try versions between these versions as I could not get >> them compiled.) >> >> Thanks a lot for your help! >> >> All the best, >> >> Gunnar >> >> >> >> > Since you haven't given a working code, I can't be sure, but probably this is a duplicate of http://old.nabble.com/feval-call-to-a-subfunction-fails-when-it-is-in-a-subfunction-to25691978.html -- RNDr. Jaroslav Hajek computing expert & GNU Octave developer Aeronautical Research and Test Institute (VZLU) Prague, Czech Republic url: www.highegg.matfyz.cz _______________________________________________ Bug-octave mailing list Bug-octave@... https://www-old.cae.wisc.edu/mailman/listinfo/bug-octave |
| Free embeddable forum powered by Nabble | Forum Help |