<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#ffffff" text="#000000">
    Hello Adrien,<br>
    <br>
    You may let write() converting numerical entries in strings:<br>
    <br>
    A = rand(4,7)<br>
    write("foo.txt",A,"(10(f10.5,2x))")<br>
    <br>
    Each line of A is processed.<br>
    10 is the maximum number of iterations of the next pattern in
    following parentheses (here 7 would be enough)<br>
    f10.3 mean float output over 10 chars including 3 figures after
    decimal dot<br>
    2x means 2 spaces<br>
    <br>
    HTH<br>
    Samuel<br>
    <br>
    ----- Message d'origine ----- <br>
    De : Adrien Vogt-Schilb <br>
    Date : 10/06/2011 16:13:
    <blockquote cite="mid:4DF22697.30805@centre-cired.fr" type="cite">
      <meta content="text/html; charset=ISO-8859-1"
        http-equiv="Content-Type">
      Hi everybody<br>
      <br>
      I would like to export a string matrix, say A<br>
      A = string(rand(4,7))<br>
      <br>
      I usually use write_csv for this, but in this occasion i have to
      use a basic scilab 4 package.<br>
      <br>
      I tried write("foo.txt",A), but this produces a column, and i just
      don't understand fortan like string format. <br>
      <br>
      Anyone can help? <br>
      thx<br>
      <br>
      <div class="moz-signature">-- <br>
        <style>
<!--
  p
        {margin:0pt;
           color:teal;
           font-family:"Cambria Math"
        font-size:12.0pt;
        }
-->
</style>
        <p><b>Adrien Vogt-Schilb</b></p>
        <p>Research Fellow</p>
        <p><a moz-do-not-send="true" a=""
            href="mailto:vogt@centre-cired.fr" style="text-decoration:
            none; color: teal;">vogt@centre-cired.fr</a></p>
        <p>Tel: (+33) 1 43 94 73 96</p>
        <p>Fax: (+33) 1 43 94 73 70</p>
        <table style="border: medium none; margin-left: 1pt; margin-top:
          4pt;" cellspacing="0">
          <tbody>
            <tr>
              <td style="padding: 0pt;">
                <p><img src="cid:part1.08090404.07030101@univ-lemans.fr"
                    alt="CIRED" width="54"></p>
              </td>
              <td style="padding: 0pt 7pt;" valign="middle">
                <p style="font-size: 10pt;">45 bis, Av de la Belle
                  Gabrielle</p>
                <p style="font-size: 10pt;">F-94736 Nogent-sur-Marne</p>
                <p style="font-size: 10pt;"><a moz-do-not-send="true"
                    href="http://www.centre-cired.fr/" style="color:
                    teal;">http://www.centre-cired.fr/</a></p>
              </td>
            </tr>
          </tbody>
        </table>
        <p> </p>
      </div>
    </blockquote>
    <br>
  </body>
</html>