Path: news.mathworks.com!not-for-mail
From: <HIDDEN>
Newsgroups: comp.soft-sys.matlab
Subject: Re: Textread
Date: Wed, 1 Jul 2009 10:40:18 +0000 (UTC)
Organization: Application Solutions
Lines: 20
Message-ID: <h2feei$qfk$1@fred.mathworks.com>
References: <h2favd$6b6$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 1246444818 27124 172.30.248.35 (1 Jul 2009 10:40:18 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Wed, 1 Jul 2009 10:40:18 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 1885308
Xref: news.mathworks.com comp.soft-sys.matlab:551943


"Jesper Lauridsen" <jesperholst_5@hotmail.com> wrote in message <h2favd$6b6$1@fred.mathworks.com>...
> I have a text file with the following data:
> 
> 72008,16193    	-0,01    	0,02    	0,015
> 72008,16375    	-0,029    	-0,034    	-0,034
> 72008,16406    	-0,02    	-0,054    	-0,059
> 72008,16437    	-0,024    	-0,039    	-0,039
> 72008,16467    	0,02    	-0,044    	-0,044
> 72008,16498    	-0,005    	-0,005    	-0,005
> 72008,16529    	0,034    	0,015    	0,01
> 72008,1656    	0,01    	0,034    	0,034
> 72008,16591    	0,029    	0,01    	0,01
> 
> I want to load the data in Matlab and replace the comma with dots. Can I use the textread function and load it into an cell array and replace the commas with dots or how do I do it?
> 
> I would be very happen if somebody could help me:)

Does it have to be done in Matlab? Couldn't you open it in a text editor and use the 'find and replace tool'? Otherwise I think this code does what you want:
data = importdata('data.txt');
dlmwrite('data_out.txt',data,'.')