<html>
<head>
<meta content="text/html; charset=windows-1252"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<div class="moz-cite-prefix"><br>
As far as I know there is no iterator operator in C format, but it
is quite easy to generate an "iterated format* using scilab.<br>
<br>
suppose the patterm of the format has been save in the variable f<br>
then the "iterated format" can be generated by<br>
strcat( f+emptystr(1,n)," ") //here I suppose the patterns are
separated by a space<br>
<br>
<br>
example<br>
//Create the data<br>
x1=(1:5)';t1="sin(x)="+string(sin(x1));x2=(1:5)'/10;t2="cos(x)="+string(cos(x2));<br>
<br>
f="x=%f %s";//The format template<br>
mprintf(strcat( f+emptystr(1,2)," ") +"\n",x1,t1,x2,t2)<br>
<br>
Le 24/02/2016 15:27, Samuel Gougeon a écrit :<br>
</div>
<blockquote cite="mid:56CDBDDC.6090607@free.fr" type="cite">
<meta http-equiv="content-type" content="text/html;
charset=windows-1252">
<font face="Arial">Hello,<br>
<br>
I am pretty sure that an horizontal iterator was recently
implemented for the format <br>
used within mprintf(), but i am failing to find any information
about how to use it.<br>
<br>
Or am i getting confused with this feature described in the<i>
help print_conver</i><i>sion</i> page:<br>
</font>
<div class="refsection">
<p class="para"> "A field width or precision can be indicated by
an <code class="literal">*</code> (asterisk) instead of a
digit string. <br>
In this case, an integer <code class="literal">value</code>
parameter supplies the field width or precision. <br>
The <code class="literal">value</code> parameter converted
for output is not fetched until the conversion <br>
letter is reached, so the parameters specifying field width or
precision must <br>
appear before the value to be converted (if any)."</p>
</div>
<font face="Arial">?<br>
<br>
By the way, i did not find any examples for any of both features
in help pages <br>
of m*print() functions.<br>
<br>
Thanks for any help<br>
Regards<br>
Samuel Gougeon<br>
</font><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>
</body>
</html>