help-octave
[Top][All Lists]
Advanced

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

Re: Numerical Differentiation and Integration of Array Data


From: c.
Subject: Re: Numerical Differentiation and Integration of Array Data
Date: Mon, 5 Dec 2011 17:54:08 +0100

On 5 Dec 2011, at 10:43, Francesco Potortì wrote:

> Yes, function pointers have always been available in the C language.
> 
> Are there general purpose languages where you do not have function
> pointers or an equivalent construct?

This is totally off-topic as regarding to Octave so if yo prefer you can answer 
off-list,
but I'm curios:  how to do someting like this in C?

function f = fun (x, p)
f = x + p;
endfunction

p = 3;
specialized_fun = @(x) fun (x, p)  

c.



reply via email to

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