[Scilab-users] save : save a list of variable don't work

Quentin Mazué mazue.quentin at gmail.com
Tue Oct 14 14:50:16 CEST 2014


hello,


Antoine Monmayrant wrote
> This is what you want to do I think:
> 
> save(pwd()+"\saveInSodFormat.sod",'a','b','c','d');

Yes it is. However in my script, the variable var2save could contain 1,2, or
100 variables. The number of variables is never the same. So I have another
script that fill the variable var2save with the name of the variable I want
to save and then I want to save this variables with their own values. (here
variables a,b,c and d are only an example)

If you use the function loadmatfile("saveInMatFormat.mat"), you will load
a=1;
b=2;
c=[1;2;3;4;8;9;6];
d = [7];
*It is what I want.*

However if you use the function load("saveInSodFormat.sod"), you will load
var2save  = !a  b  c  d  !
*I don't want this*


Summary : 
2 different save function lead to 2 different save data although it was
expected to be the same.

Regards
Quentin Mazué



--
View this message in context: http://mailinglists.scilab.org/save-save-a-list-of-variable-don-t-work-tp4031334p4031336.html
Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com.



More information about the users mailing list