<html>
  <head>
    <meta content="text/html; charset=utf-8" http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    <div class="moz-cite-prefix">On 10/14/2014 02:30 PM, Quentin Mazué
      wrote:<br>
    </div>
    <blockquote cite="mid:1413289849154-4031334.post@n3.nabble.com"
      type="cite">
      <pre wrap="">Hello,

I developped a script to save data with savematfile which works well but
when i modified it to save files in sod format it failed.

Here a small script to illustrate what I want to do : 
bug_save.sce <a class="moz-txt-link-rfc2396E" href="http://mailinglists.scilab.org/file/n4031334/bug_save.sce"><http://mailinglists.scilab.org/file/n4031334/bug_save.sce></a>  

I want to save the variables which names are contained into var2Save. It
works well with savematfile() function but not with save() function.</pre>
    </blockquote>
    Hi,<br>
    <br>
    It's not a bug, it's a problem of syntax.<br>
    Look at the help page for 'save': there are two different calling
    sequences:<br>
        - save(filename, varname) -> old deprecated version that you
    are using: it saves the variable varname (ie var2save that contains
    a vector of strings in your case).<br>
        - save(filename, "varname") -> new hdf5-based version that
    saves the variable named "varname".<br>
    <br>
    This is what you want to do I think:<br>
    <meta http-equiv="content-type" content="text/html; charset=utf-8">
    <pre style="color: rgb(0, 0, 0); font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; word-wrap: break-word; white-space: pre-wrap;">save(pwd()+"\saveInSodFormat.sod",<meta http-equiv="content-type" content="text/html; charset=utf-8">'a','b','c','d');</pre>
    <br>
    Cheers,<br>
    <br>
    Antoine<br>
    <blockquote cite="mid:1413289849154-4031334.post@n3.nabble.com"
      type="cite">
      <pre wrap="">

Moreover there is a warning : Scilab 6 will not support the file format
used.

Did I do something wrong or is it a bug?

This could be related to this bug : 12305.

Regards
Quentin Mazué



--
View this message in context: <a class="moz-txt-link-freetext" href="http://mailinglists.scilab.org/save-save-a-list-of-variable-don-t-work-tp4031334.html">http://mailinglists.scilab.org/save-save-a-list-of-variable-don-t-work-tp4031334.html</a>
Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com.
_______________________________________________
users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:users@lists.scilab.org">users@lists.scilab.org</a>
<a class="moz-txt-link-freetext" href="http://lists.scilab.org/mailman/listinfo/users">http://lists.scilab.org/mailman/listinfo/users</a>

</pre>
    </blockquote>
    <br>
    <br>
    <pre class="moz-signature" cols="72">-- 
+++++++++++++++++++++++++++++++++++++++++++++++++++++++

 Antoine Monmayrant LAAS - CNRS
 7 avenue du Colonel Roche
 BP 54200
 31031 TOULOUSE Cedex 4
 FRANCE

 Tel:+33 5 61 33 64 59
 
 email : <a class="moz-txt-link-abbreviated" href="mailto:antoine.monmayrant@laas.fr">antoine.monmayrant@laas.fr</a>
 permanent email : <a class="moz-txt-link-abbreviated" href="mailto:antoine.monmayrant@polytechnique.org">antoine.monmayrant@polytechnique.org</a>

+++++++++++++++++++++++++++++++++++++++++++++++++++++++

</pre>
  </body>
</html>