help-octave
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Octave saving matrix of numbers in scientific format


From: Dmitri A. Sergatskov
Subject: Re: Octave saving matrix of numbers in scientific format
Date: Mon, 12 Nov 2012 13:11:06 -0600

Something along the lines of

a = rand(3,5)
fh = fopen("mymatrix.dat", "w")
fmt = [repmat("%f ", 1,5), "\n"]
fprintf(fh, fmt, a)
fclose(fh)

should work.

Dmitri.
--


reply via email to

[Prev in Thread] Current Thread [Next in Thread]