|
From: | Paul Kienzle |
Subject: | Re: How to suppress unneeded output while using "save" |
Date: | Tue, 6 Dec 2005 21:50:27 -0500 |
On Dec 6, 2005, at 9:51 AM, John W. Eaton wrote:
Or even fprintf (fid, strcat (repmat (" %f", 1, columns (a)), "\n"), a'); though you may want to get a little fancier with the format string so that there is not a space at the beginning or end of each line.
See for example the following two lines from dlmwrite:template = [ precision, repmat([delim,precision],1,columns(A)-1), newline ];
fprintf(fid,template,A.'); - Paul ------------------------------------------------------------- Octave is freely available under the terms of the GNU GPL. Octave's home on the web: http://www.octave.org How to fund new projects: http://www.octave.org/funding.html Subscription information: http://www.octave.org/archive.html -------------------------------------------------------------
[Prev in Thread] | Current Thread | [Next in Thread] |