Hi,
Try csvWrite and its options.
Sent from my phone
samuel.en...@unn.edu.ng wrote:
>Dear sirs,
>
>Is there a vectorial form of any variant of fprintf function?I would like to
>print a matrix of numbers to a specific numbwr of decimal palces.
>
>Thanks for your kind assistance.
>
>Sent from
Dear sirs,
Is there a vectorial form of any variant of fprintf function?I would like to
print a matrix of numbers to a specific numbwr of decimal palces.
Thanks for your kind assistance.
Sent from my Nokia phone
___
users mailing list
users@lists.scil
Dear sirs,
Is there a vectorial form of any variant of fprintf function?I would like to
print a matrix of numbers to a specific numbwr of decimal palces.
Thanks for your kind assistance.
Sent from my Nokia phone
___
users mailing list
users@lists.scil
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
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