[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 |
Hi,
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;
endfunction
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,
James
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.
Thanks
Martin
-----
Pretty much convinced Octave>Excel for scientific data analysis!
--
View this message in context: http://octave.1599824.n4.nabble.com/Calling-functions-tp2328538p2328538.html
Sent from the Octave - General mailing list archive at Nabble.com.
_______________________________________________
Help-octave mailing list
address@hidden
https://www-old.cae.wisc.edu/mailman/listinfo/help-octave