MathGroup Archive 2003

[Date Index] [Thread Index] [Author Index]

Search the Archive

Re: Comprehensive Clear ?

  • To: mathgroup at smc.vnet.net
  • Subject: [mg43221] Re: Comprehensive Clear ?
  • From: "News Admin" <news at news.demon.net>
  • Date: Wed, 20 Aug 2003 22:25:14 -0400 (EDT)
  • References: <bht380$n0s$1@smc.vnet.net>
  • Reply-to: "Allan Hayes" <hay at haystack.demon.co.uk>
  • Sender: owner-wri-mathgroup at wolfram.com

<tasande at mit.edu> wrote in message news:bht380$n0s$1 at smc.vnet.net...
> MathGroup:
>
> Is there a command similar to Clear, or ClearAll, that will "Clear" all
> variables without having to explicitly list them?  I may have "forgotten"
> variables on the loose, whose names I have forgotten and whose orginal
input
> cells I may have erased. I wish to be circumspect, and comprehensively
> clear the past history of a notebook.
>
> Sincerely,
>
> Theodore Sande
> MIT Department of Physics
> tasande at mit.edu ?
>
>

Theadore,

Clear["`*"]

will clear every symbol in the current context, similarly with
ClearAll["`*"].

Other contexts will have to be stated explicitely: Clear["aaa*"].

You may have to unprotect the symbols first: Unprotect["`*],
Unprotect["aaa`*].


Allan
---------------
Allan Hayes
hay at haystack.demon.co.uk
Voice: +44 (0)116 241 8747
Fax: +44 (0)870 164 0565


  • Prev by Date: Re: Fills in StackGraphics ?
  • Next by Date: Re: Are points co-planar in (numDimensions-1)?
  • Previous by thread: Re: Comprehensive Clear ?
  • Next by thread: Re: Comprehensive Clear ?