Path: news.mathworks.com!not-for-mail
From: "Pekka Kumpulainen" <pekka.nospam.kumpulainen@tut.please.fi>
Newsgroups: comp.soft-sys.matlab
Subject: Re: Decimals from comma to dot
Date: Wed, 7 Jan 2009 10:39:01 +0000 (UTC)
Organization: Tampere University of Technology
Lines: 28
Message-ID: <gk20o5$rsp$1@fred.mathworks.com>
References: <gjvfqq$muv$1@fred.mathworks.com> <gjvi08$qab$1@fred.mathworks.com> <gk1uu1$8d7$1@fred.mathworks.com>
Reply-To: "Pekka Kumpulainen" <pekka.nospam.kumpulainen@tut.please.fi>
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 1231324741 28569 172.30.248.35 (7 Jan 2009 10:39:01 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Wed, 7 Jan 2009 10:39:01 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 218565
Xref: news.mathworks.com comp.soft-sys.matlab:510194


"Fiona Buckley" <buckley_fiona@yahoo.com> wrote in message <gk1uu1$8d7$1@fred.mathworks.com>...
> "us " <us@neurol.unizh.ch> wrote in message <gjvi08$qab$1@fred.mathworks.com>...
> > "Fiona Buckley"
> > > I want to write a script to import this data, but as the floating points numbers are comma seperated I can't seem to manage...
> > 
> > a hint:
> > other CSSMers have proposed a PERL script to do the conversion before using any one of the ML input procedures...
> > look for PERL in this NG...
> > 
> > us
> 
> 
> 
> Thanks for the hint ;o)
> I found the program and it is very slick, a real savious. However, I still have a problem... as my file is ASCII, I get the following message: 
>             ??? Error using ==> replaceinfile at 63
>             Can't do inplace edit on Down: File exists.
> However, if I save my ASCII file as a txt file I then can run the script with no problem at all. Any idea what I could do to avoid doing the save as manipulation? 
> 
> Cheers
> Fiona

Hi, can you give a more detailed example of what you are doing?
How do you call replaceinfile, which file names you have etc?
You can also email me directly (Assuming you use the replaceinfile function I posted), I'll be happy to try to fix any problems.

Perl is not included in my native languages, sorry.. It was originally made  to do exactly what you are trying to do.