help-octave
[Top][All Lists]
Advanced

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

Re: Is this a bug or is just a operating error?


From: Judd Storrs
Subject: Re: Is this a bug or is just a operating error?
Date: Tue, 1 Dec 2009 11:04:49 -0500

On Tue, Dec 1, 2009 at 1:46 AM, BrillianceLin <address@hidden> wrote:
>
> 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)


I think you are calling your function incorrectly. The "function"
keyword is used to create functions--to use a function leave out the
"function" part. Something like this:

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


--judd



reply via email to

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