help-octave
[Top][All Lists]
Advanced

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

Lists of function handles


From: andreas.sodeur
Subject: Lists of function handles
Date: Tue, 7 Feb 2006 14:53:14 +0100

Hi,

I am trying to create a list of function handles. This seems to be possible in Matlab, but generates errors in Octave:

>>function r = basisFunction1(x)
        r  =  1;
endfunction

>>function r = basisFunction2(x)
        r  =  x;
endfunction

>>a(1)  =  @basisFunction1
error: can't perform indexed assignment for function handle type
error: assignment failed, or no method for `<unknown type> = function handle'
error: evaluating assignment _expression_ near line 1, column 6

Any work-around? Thx

Andreas Sodeur

RWE Trading GmbH
Structuring & Valuation
Huyssenallee 2, 45128 Essen
intern 70-17755
extern +49(0)201/12-177 55
mobile +49(0)163/63-177 55


reply via email to

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