Re: Delete all the memory except 1 matrix
- To: mathgroup at smc.vnet.net
- Subject: [mg76932] Re: Delete all the memory except 1 matrix
- From: acmilan <fanvn_Acmilan at yahoo.com>
- Date: Wed, 30 May 2007 05:22:12 -0400 (EDT)
- References: <200705171005.GAA01244@smc.vnet.net><f2jtfq$c74$1@smc.vnet.net>
Thanks so much Andrej and Kuska. On May 18, 6:00 pm, Andrzej Kozlowski <a... at mimuw.edu.pl> wrote: > On 17 May 2007, at 19:05, acmilan wrote: > > > Dear all, > > Please help me on this basic problem. > > If I want to clear all the calculations in history I usually use > > Clear["Global`*"]; > > But what should I use if I want to delete all except one or two > > variable (for example a matrix K and M)? > > Thank you very much for your help. > > Best regards, > > acmilan. > > One way: > > x = 1; y = 2; z = 3; > > Clear @@ (Complement[Names["Global`*"], {"x", "y"}]) > > {x, y, z} > {1, 2, z} > > You can easily make a function out of that. > > Andrzej Kozlowski
- References:
- Delete all the memory except 1 matrix
- From: acmilan <fanvn_Acmilan@yahoo.com>
- Delete all the memory except 1 matrix