Path: news.mathworks.com!not-for-mail
From: "Ashish Uthama" <first.last@mathworks.com>
Newsgroups: comp.soft-sys.matlab
Subject: Re: Textread
Date: Wed, 01 Jul 2009 10:36:11 -0400
Organization: TMW
Lines: 23
Message-ID: <op.uwd76lf8a5ziv5@uthamaa.dhcp.mathworks.com>
References: <h2favd$6b6$1@fred.mathworks.com>
NNTP-Posting-Host: uthamaa.dhcp.mathworks.com
Mime-Version: 1.0
Content-Type: text/plain; format=flowed; delsp=yes; charset=iso-8859-15
Content-Transfer-Encoding: 7bit
X-Trace: fred.mathworks.com 1246458971 4137 172.31.57.126 (1 Jul 2009 14:36:11 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Wed, 1 Jul 2009 14:36:11 +0000 (UTC)
User-Agent: Opera Mail/9.63 (Win32)
Xref: news.mathworks.com comp.soft-sys.matlab:552027


On Wed, 01 Jul 2009 05:41:02 -0400, Jesper Lauridsen  
<jesperholst_5@hotmail.com> wrote:

> 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?

That would be one approach. Did you try it?
(FOPEN, TEXTSCAN, STRREP, STR2DOUBLE)