help-octave
[Top][All Lists]
Advanced

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

Re: wierd octave behaviour


From: cyber gilles
Subject: Re: wierd octave behaviour
Date: Mon, 21 Jul 2008 15:58:17 -0400

Oh my bad, (that's what happens when you can't sleep at night)

it was supposed to be

voltage=linspace(0,25);

and not f(0,25)

It is working perfectly now.

Thank you very much.

On Mon, Jul 21, 2008 at 3:25 PM, wim van hoydonck
<address@hidden> wrote:
> 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]