From: per isakson on
Armin Mueller <arm.in(a)web.de> wrote in message <hs9n3u$p3q$1(a)news2.rz.uni-karlsruhe.de>...
> Dear NG,
>
> I would like to read a data file which was generated using some German
> localized software. This means the decimal separator is a comma:
>
> -0,0100 2,1900 3,0158
> -0,0100 2,3150 1,8415
> -0,0100 2,4400 3,4894
> -0,0100 2,5650 2,1753
> -0,0100 2,6900 4,2679
> -0,0100 2,8150 1,7900
>
> How to accomplish this?!

See

Thread Subject: Textread
Subject: Textread
From: Jesper Lauridsen
Date: 1 Jul, 2009 09:41:02
Message: 1 of 24

/ per
From: Rune Allnor on
On 10 Mai, 21:34, Armin Mueller <arm...(a)web.de> wrote:
> Dear NG,
>
> I would like to read a data file which was generated using some German
> localized software. This means the decimal separator is a comma:
>
> -0,0100 2,1900  3,0158
> -0,0100 2,3150  1,8415
> -0,0100 2,4400  3,4894
> -0,0100 2,5650  2,1753
> -0,0100 2,6900  4,2679
> -0,0100 2,8150  1,7900
>
> How to accomplish this?!

If the snippet above is representative for the file
format, scan through the file and replace all commas
by dots.

Apart from that, make sure that the software that
generates the files use dots as decimal separators.
You can usually do this through the locale settings
on the computer.

Rune
 | 
Pages: 1
Prev: CPLEX 12.1 in Matlab
Next: drawing a sum function