Path: news.mathworks.com!not-for-mail
From: <HIDDEN>
Newsgroups: comp.soft-sys.matlab
Subject: Re: print a matrix ...
Date: Thu, 22 Oct 2009 10:43:04 +0000 (UTC)
Organization: Energinet.dk
Lines: 11
Message-ID: <hbpcvo$868$1@fred.mathworks.com>
References: <hbopub$1m3$1@fred.mathworks.com> <hbp2nj$bmq$1@fred.mathworks.com> <hbpbvr$rrb$1@fred.mathworks.com>
Reply-To: <HIDDEN>
NNTP-Posting-Host: webapp-05-blr.mathworks.com
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit
X-Trace: fred.mathworks.com 1256208184 8392 172.30.248.35 (22 Oct 2009 10:43:05 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Thu, 22 Oct 2009 10:43:04 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 1669652
Xref: news.mathworks.com comp.soft-sys.matlab:579260


More or less this:

infid=fopen('filename','wt');
for r=1:size(A,1)
   for c=1:size(A,2)
        fprintf(infid,'%.2f ',A(r,c));
   end
   fprintf(infid,'\n ');
end
fclose(infid) 
not quick