help-octave
[Top][All Lists]
Advanced

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

output variables from functions


From: Jim Maas
Subject: output variables from functions
Date: Fri, 27 Mar 2009 09:42:10 +0000
User-agent: Thunderbird 2.0.0.21 (X11/20090318)


You can use ca as global variable by adding line "global ca" both to
main script and the function (then it's value will be set every time
the function is called, and it would bea vailable to ther functions -
you need to add "global ca" also there)

Ivan Sutoris

_______________________________________________
Help-octave mailing list
address@hidden
https://www-old.cae.wisc.edu/mailman/listinfo/help-octave

----- End forwarded message -----
Or you can include the value of this variable to the array of results that
it returns: instead of y=f(x), use [x,y]=f(x).
Cheers, Avraham

Thanks Avraham,

I've tried this many times, but then when I try to use this variable somewhere else in the script I just get an error message saying that it is unassigned? How can this be?

Thanks

Jim

----
Jim Maas




reply via email to

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