Re: [Scilab-users] Vectorial form of fprintf Function

2013-03-04 Thread Calixte Denizet
Hi Samuel, You could try something like: c = (1:10)'; fd=mopen("/tmp/foo.bar"); mfprintf(fd, "%5.3f\n", c); mclose(fd); If you need to print a matrix you can do A=rand(3,4); fd=mopen("/tmp/bar.foo","wt"); mfprintf(fd, "%5.3f %5.3f %5.3f %5.3f\n",A) mclose(fd); Best regards Calixte On 04/03/20

[Scilab-users] Vectorial form of fprintf Function

2013-03-04 Thread Samuel Enibe
Dear Sir, I would like to print a given column in a matrix with a specific number of decimal places. The *format* function does not give the same number of decimal places for columns containing data of varying length. On the other hand, *fprintf* and the like appear suitable for single float at a