[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Calling octave functions from oct-files

From: Evan
Subject: Re: Calling octave functions from oct-files
Date: Sat, 19 Jan 2008 16:30:30 +0800

On Jan 18, 2008 7:06 PM, Carlo de Falco <address@hidden> wrote:
> On 17/gen/08, at 15:58, Muthiah Annamalai wrote:
> > If you pulled off the code from Octave repository, you need to keep
> > the
> > GPL license headers intact.
> >
> > -Muthu
> Muthu,
> you're right.
> Although I guess from Evan's reply that the code itself is of little
> use,
> I attach the file with the copyright notice intact.
> c.

Thank you any way.

Since don't know any easy ways to define a function handle in
oct-files, I have left that to octave scripts. In my case, I define a
function as follows

function nf = inv_fcn (f)
    nf = @(x) 1./f(x)

then I call this function from the oct-file using feval to get a new
function handle. The integration of the function handle derived in
this way is fast, not like the one obtained by manipulating strings.

reply via email to

[Prev in Thread] Current Thread [Next in Thread]