<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    Hi Samuel,<br>
    <br>
    You could try something like:<br>
    c = (1:10)';<br>
    fd=mopen("/tmp/foo.bar");<br>
    mfprintf(fd, "%5.3f\n", c);<br>
    mclose(fd);<br>
    <br>
    If you need to print a matrix you can do<br>
    A=rand(3,4);<br>
    fd=mopen("/tmp/bar.foo","wt");<br>
    mfprintf(fd, "%5.3f %5.3f %5.3f %5.3f\n",A)<br>
    mclose(fd);<br>
    <br>
    Best regards<br>
    <br>
    Calixte<br>
    <br>
    On 04/03/2013 21:40, Samuel Enibe wrote:
    <blockquote
cite="mid:CAJKcLoXm3kbjyO9JjXchhj9DgzrPmpAePGHoSLOqKqp=zRpG2w@mail.gmail.com"
      type="cite">Dear Sir,<br>
      <br>
      I would like to print a given column in a matrix with a specific
      number of decimal places. The <b>format</b> function does not
      give  the same number of decimal places for columns containing
      data of varying length. On the other hand, <b>fprintf</b> and the
      like appear suitable for single float at a time. Is there a
      version of <b>fprintf</b> and co that can be used directly for a
      matrix?<br clear="all">
      <br>
      -- <br>
      Samuel Ogbonna Enibe<br>
      University of Nigeria, Nsukka, Nigeria<br>
      Tel: +2348063646798<br>
      <br>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
      <pre wrap="">_______________________________________________
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">-- 
Calixte Denizet
Software Development Engineer
-----------------------------------------------------------
Scilab Enterprises
143bis rue Yves Le Coz - 78000 Versailles, France
<a class="moz-txt-link-freetext" href="http://www.scilab-enterprises.com">http://www.scilab-enterprises.com</a></pre>
  </body>
</html>