help-octave
[Top][All Lists]
Advanced

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

Re: wierd octave behaviour


From: wim van hoydonck
Subject: Re: wierd octave behaviour
Date: Mon, 21 Jul 2008 21:25:55 +0200

On Mon, Jul 21, 2008 at 5:59 PM, cyber gilles <address@hidden> wrote:
> You are right.. I changed it BUT I get a new error :
>
> error: `TaC' undefined near line 16 column 9
>
> I do not understand why it says TaC is undefined. I thought that was
> the whole point of having a function?
>

That is because the first time you call your function (on line 16),
TaC _is_ undefined:

> voltage=f(0,25);

misses the third (TaC) argument.

Either make it:
voltage = f(0,25,0);

or make sure the function can handle a variable number of input arguments.


reply via email to

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