[Scilab-users] how to get list of object that are present in scilab script file
Stéphane Mottelet
stephane.mottelet at utc.fr
Tue Sep 3 18:00:58 CEST 2013
Le 03/09/13 17:27, Serge Steer a écrit :
> Le 03/09/2013 12:20, hilife5 a écrit :
>> I want to know is there exist any way to get the list of objects like
>> variable names, matrices, plots that are present in scilab script file.
> for script file, no but it is possible for functions using the
> macrovar function
> Serge Steer
>>
>> Thanks
>>
>>
>>
>> --
>> View this message in context:
>> http://mailinglists.scilab.org/how-to-get-list-of-object-that-are-present-in-scilab-script-file-tp4027336.html
>> Sent from the Scilab users - Mailing Lists Archives mailing list
>> archive at Nabble.com.
>> _______________________________________________
>> users mailing list
>> users at lists.scilab.org
>> http://lists.scilab.org/mailman/listinfo/users
>>
>
> _______________________________________________
> users mailing list
> users at lists.scilab.org
> http://lists.scilab.org/mailman/listinfo/users
All the variables created by foo.sce at the workspace level can be
obtained like this :
clear
names=who('local');
exec('foo.sce',-1);
names=setdiff(names,who('local'));
This trick is a basis for a more clever method (e.g. by using typeof a
posteriori).
S.
More information about the users
mailing list