[scilab-Users] clear question

Offer Pade oferpade at netvision.net.il
Wed Apr 13 20:56:08 CEST 2011


Thanks Adrien

Your idea is very good and it works!

 

-----Original Message-----
From: Adrien Vogt-Schilb [mailto:vogt at centre-cired.fr] 
Sent: Wednesday, April 13, 2011 12:59 AM
To: users at lists.scilab.org
Subject: Re: [scilab-Users] clear question

 

Le 12/04/2011 19:46, offerp70 a écrit : 

Does any one know of a scilab equivalent to matlab "clearva except ..." . 

I believe there is no one. 

But you can work around using "who" 
something like: 

list_of_vars = who()

then remove from list_of_vars what you want to keep, and then:

for varnames = list_of_var
clear(varnames)
end




you can also use something like:
save(TMPDIR+filesep()+'foo')
clear
load(TMPDIR+filesep()+'foo', var1, var2, var3)



-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.scilab.org/pipermail/users/attachments/20110413/aa2dd5fd/attachment.htm>


More information about the users mailing list