help-octave
[Top][All Lists]
Advanced

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

Is this a bug or is just a operating error?


From: BrillianceLin
Subject: Is this a bug or is just a operating error?
Date: Mon, 30 Nov 2009 22:46:14 -0800 (PST)

Hello everyone, I have a problem on Octave 3.2
I wrote a custom function in the script look like this

function [fmin, xmin, xcent_k,
fxcent_k]=PJssplex(x0,alpha0,epsilon1,epsilon2,delt)
    "body script"

end

when I tried to called the function from terminal like this:

function [fmin, xmin, xcent_k,
fxcent_k]=PJssplex([5,6,7;23,24,25;33,34,35],1.3,0.0001,0.0005,0.00001)

the terminal return a such statement

arse error:

  syntax error

>>> function [fmin, xmin, xcent_k,
>>> fxcent_k]=PJssplex([5,6,7;23,24,25;33,34,35],1.3,0.0001,0.0005,0.00001)
                                                      ^

parse error:

  syntax error

>>> function [fmin, xmin, xcent_k,
>>> fxcent_k]=PJssimplex([5,6,7;23,24,25;33,34,35],1.3,0.0001,0.0005,0.00001)
                                                                                
    
^

parse error:

  invalid parameter list

>>> function [fmin, xmin, xcent_k,
>>> fxcent_k]=PJssimplex([5,6,7;23,24,25;33,34,35],1.3,0.0001,0.0005,0.00001)
                                                                                
    
^

little help? If it is not a bug, can any one tell me what is the correct way
to call this function ?



-- 
View this message in context: 
http://old.nabble.com/Is-this-a-bug-or-is-just-a-operating-error--tp26587362p26587362.html
Sent from the Octave - General mailing list archive at Nabble.com.



reply via email to

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