Search All of the Math Forum:
Views expressed in these public forums are not endorsed by
NCTM or The Math Forum.



Re: Calling Global Variable in Function
Posted:
Oct 29, 2009 6:25 PM


"Steffen " <sap37@njit.edu> wrote in message <hcd378$aor$1@fred.mathworks.com>... > Well I did define it as a Global variable before I referenced it. It still returns that same error.
NO! You must declare it as a global variable in every function where you need to use it. In the function you posted, you did NOT declare frames as global before you referenced it.
P.S., this is CLEARLY stated in the help. Type: help global



