[Top][All Lists]

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

Re: Calling functions

From: James Sherman Jr.
Subject: Re: Calling functions
Date: Tue, 17 Aug 2010 13:17:07 -0400


My first guess is that you didn't assign one of your return variables a value.  So for example,  if your function reads:

function [a, b, c] = myfunction(x)

a = x;
c = 1;


Then if you tried to call the function with all the return values, you'd get something like:

octave-3.2.3:4> [a,b,c] = test(5)
warning: test: some elements in list of return values are undefined
a =  5
b = [](0x0)
c =  1

Hope this helps,

On Tue, Aug 17, 2010 at 11:33 AM, dirac <address@hidden> wrote:

Hi again everyone,

I have tried solving this and debugging this prior to this posting, but now
I'm utterly stuck for ideas. I am trying to create a function which calls
another function up and keep getting the error message

b=[](0x0)    some elements in list of return values are undefined

I understand this is a vague question with little information as it
stands...and pointers will be really useful.


Pretty much convinced Octave>Excel for scientific data analysis!
View this message in context:
Sent from the Octave - General mailing list archive at
Help-octave mailing list

reply via email to

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