Understanding Scope: The Life Span of a Variable

  • Posted on: 18 March 2011
  • By: Anand
Scopes:
All the variable in any language have a span of life which is called their scope. Fortunately all variables created in MATLAB by a script or command line are alive until you delete them by calling clear or you shutdown matlab. While all the variable in the function become alive when that function is called and they are cleared automatically as soon as function call is ver.

Pages