Path: news.mathworks.com!not-for-mail
From: <HIDDEN>
Newsgroups: comp.soft-sys.matlab
Subject: Decimals from comma to dot
Date: Tue, 6 Jan 2009 11:38:02 +0000 (UTC)
Organization: DEME
Lines: 13
Message-ID: <gjvfqq$muv$1@fred.mathworks.com>
Reply-To: <HIDDEN>
NNTP-Posting-Host: webapp-03-blr.mathworks.com
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit
X-Trace: fred.mathworks.com 1231241882 23519 172.30.248.38 (6 Jan 2009 11:38:02 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Tue, 6 Jan 2009 11:38:02 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 1552188
Xref: news.mathworks.com comp.soft-sys.matlab:509996


Hi, 
I've got a file in ASCII format with decimal values comma seperated and columns are seperated by tab. The columns either have strings or floating numbers and my first column is in a ISO time-date format.
The file to be imported has column headers and titles which I don't need however, I do need all the string data and the floating number data from the general file. 

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. I previously wrote scripts to do this but up to now my decimals were always dot seperated. No matter what I do now I seem to be stuck. Here under some of the many functions I tried and what happened: 
A) importdata  - gives me a strucutre with one data field and one textdata field but almost all the strings have been trunckated and the numerical values are combined (i.e. 3,34 6,91 9,32 gives me 3 346 91932)
B) fopen - error message saying that the variable is undefined
C) textscan or textread - error message as the data is not recognised
D) strrep - I can't replace the string as I can't open the file

Does anyone have an idea??? 
Cheers
Fiona