Path: news.mathworks.com!not-for-mail
From: <HIDDEN>
Newsgroups: comp.soft-sys.matlab
Subject: Re: Writing formatted text files when column number of the ouput is uncertain?
Date: Tue, 31 Jul 2007 15:33:16 +0000 (UTC)
Organization: Nationwide Mutual Insurance Co.
Lines: 24
Message-ID: <f8nkns$mht$1@fred.mathworks.com>
References: <f8ndon$pv1$1@fred.mathworks.com> <f8nhli$gok$1@fred.mathworks.com> <f8nj0u$eig$1@fred.mathworks.com> <f8njnb$2ke$1@fred.mathworks.com>
Reply-To: <HIDDEN>
NNTP-Posting-Host: webapp-00-blr.mathworks.com
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit
X-Trace: fred.mathworks.com 1185895996 23101 172.30.248.35 (31 Jul 2007 15:33:16 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Tue, 31 Jul 2007 15:33:16 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 642723
Xref: news.mathworks.com comp.soft-sys.matlab:421868



That's what HELP says "dlmwrite(filename,M,delimiter,R,C) writes matrix A into an ASCII-format file, using delimiter to separate matrix elements. The data is written to the SPREADSHEET filename, starting at spreadsheet cell R and C, where R is the row offset and C is the column offset. R and C are zero based so that R=0, C=0 specifies the first value in the file, which is the upper left corner." 

You mean the filename doesn't have to be the name of a spreadsheet?

So, if the name of the file I want to write to is test.txt and the matrix I want to export is test, is it the right way to code?
 
dlmwrite('test.txt',test,'\t');

I am getting an error message. 

Thanks

"us " <us@neurol.unizh.ch> wrote in message <f8njnb$2ke$1@fred.mathworks.com>...
> stephen:
> <SNIP this reply is beyond me...
> 
> > But the output is too big to be exported to spreadsheet, which I assume is what dlmwrite does, if I understand it correctly...
> 
> well,
> 1) why ASSUME - did you even bother to READ the help?!
> 2) why not just TRY the function - did you ever consider?!
> 
> us