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.

suppose the patterm of the format has been save in the variable f
then the "iterated format" can be generated by
strcat( f+emptystr(1,n)," ") //here I suppose the patterns are separated by a space


example
//Create the data
x1=(1:5)';t1="sin(x)="+string(sin(x1));x2=(1:5)'/10;t2="cos(x)="+string(cos(x2));

f="x=%f %s";//The format template
mprintf(strcat( f+emptystr(1,2)," ") +"\n",x1,t1,x2,t2)

Le 24/02/2016 15:27, Samuel Gougeon a écrit :
Hello,

I am pretty sure that an horizontal iterator was recently implemented for the format used within mprintf(), but i am failing to find any information about how to use it.

Or am i getting confused with this feature described in the/help print_conver//sion/ page:

"A field width or precision can be indicated by an |*| (asterisk) instead of a digit string. In this case, an integer |value| parameter supplies the field width or precision. The |value| parameter converted for output is not fetched until the conversion letter is reached, so the parameters specifying field width or precision must
appear before the value to be converted (if any)."

?

By the way, i did not find any examples for any of both features in help pages
of m*print()  functions.

Thanks for any help
Regards
Samuel Gougeon



_______________________________________________
users mailing list
users@lists.scilab.org
http://lists.scilab.org/mailman/listinfo/users

_______________________________________________
users mailing list
users@lists.scilab.org
http://lists.scilab.org/mailman/listinfo/users

Reply via email to