<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0">
  <channel>
    <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/241937</link>
    <title>MATLAB Central Newsreader - Decimals from comma to dot</title>
    <description>Feed for thread: Decimals from comma to dot</description>
    <language>en-us</language>
    <copyright>&amp;copy;1994-2012 by MathWorks, Inc.</copyright>
    <webmaster>webmaster@mathworks.com</webmaster>
    <generator>MATLAB Central Newsreader</generator>
    <docs>http://blogs.law.harvard.edu/tech/rss</docs>
    <ttl>60</ttl>
    <image>
      <title>MathWorks</title>
      <url>http://www.mathworks.com/images/membrane_icon.gif</url>
    </image>
    <item>
      <pubDate>Wed, 04 Mar 2009 16:20:17 -0500</pubDate>
      <title>Re: Decimals from comma to dot</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/241937#632492</link>
      <author>Sdelarosa de la Rosa</author>
      <description>&lt;br&gt;
&amp;gt; One possibility is to run this function as a separate step. It doesn't work with comma separated files and it will replace commas in the header (if there is one) &lt;br&gt;
&amp;gt; / per&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; function    comma2point_overwrite( filespec )&lt;br&gt;
&amp;gt; % replaces all occurences of comma (&quot;,&quot;) with point (&quot;.&quot;) in a text-file.&lt;br&gt;
&amp;gt; % Note that the file is overwritten, which is the price for high speed.&lt;br&gt;
&amp;gt;     file    = memmapfile( filespec, 'writable', true );&lt;br&gt;
&amp;gt;     comma   = uint8(',');&lt;br&gt;
&amp;gt;     point   = uint8('.');&lt;br&gt;
&amp;gt;     file.Data( transpose( file.Data==comma) ) = point;&lt;br&gt;
&amp;gt;     delete(file)&lt;br&gt;
&amp;gt; end&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
Hi Per, thanks for this, I had exactly the same problem as Fiona. With this function I can now read in the .asc files without any problem using:&lt;br&gt;
&lt;br&gt;
comma2point_overwrite( filespec )&lt;br&gt;
[data] = importdata([filespec],'\t',headerlength);&lt;br&gt;
&lt;br&gt;
You saved me (and surely others) from eternal hours of struggle! :-)</description>
    </item>
    <item>
      <pubDate>Wed, 04 Mar 2009 16:20:18 -0500</pubDate>
      <title>Re: Decimals from comma to dot</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/241937#632493</link>
      <author>Sdelarosa de la Rosa</author>
      <description>&lt;br&gt;
&amp;gt; One possibility is to run this function as a separate step. It doesn't work with comma separated files and it will replace commas in the header (if there is one) &lt;br&gt;
&amp;gt; / per&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; function    comma2point_overwrite( filespec )&lt;br&gt;
&amp;gt; % replaces all occurences of comma (&quot;,&quot;) with point (&quot;.&quot;) in a text-file.&lt;br&gt;
&amp;gt; % Note that the file is overwritten, which is the price for high speed.&lt;br&gt;
&amp;gt;     file    = memmapfile( filespec, 'writable', true );&lt;br&gt;
&amp;gt;     comma   = uint8(',');&lt;br&gt;
&amp;gt;     point   = uint8('.');&lt;br&gt;
&amp;gt;     file.Data( transpose( file.Data==comma) ) = point;&lt;br&gt;
&amp;gt;     delete(file)&lt;br&gt;
&amp;gt; end&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
Hi Per, thanks for this, I had exactly the same problem as Fiona. With this function I can now read in the .asc files without any problem using:&lt;br&gt;
&lt;br&gt;
comma2point_overwrite( filespec )&lt;br&gt;
[data] = importdata([filespec],'\t',headerlength);&lt;br&gt;
&lt;br&gt;
You saved me (and surely others) from eternal hours of struggle! :-)</description>
    </item>
    <item>
      <pubDate>Tue, 06 Jan 2009 11:38:02 -0500</pubDate>
      <title>Decimals from comma to dot</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/241937#620050</link>
      <author>Fiona Buckley</author>
      <description>Hi, &lt;br&gt;
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.&lt;br&gt;
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. &lt;br&gt;
&lt;br&gt;
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: &lt;br&gt;
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)&lt;br&gt;
B) fopen - error message saying that the variable is undefined&lt;br&gt;
C) textscan or textread - error message as the data is not recognised&lt;br&gt;
D) strrep - I can't replace the string as I can't open the file&lt;br&gt;
&lt;br&gt;
Does anyone have an idea??? &lt;br&gt;
Cheers&lt;br&gt;
Fiona</description>
    </item>
    <item>
      <pubDate>Tue, 06 Jan 2009 12:15:04 -0500</pubDate>
      <title>Re: Decimals from comma to dot</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/241937#620055</link>
      <author>us</author>
      <description>&quot;Fiona Buckley&quot;&lt;br&gt;
&amp;gt; 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...&lt;br&gt;
&lt;br&gt;
a hint:&lt;br&gt;
other CSSMers have proposed a PERL script to do the conversion before using any one of the ML input procedures...&lt;br&gt;
look for PERL in this NG...&lt;br&gt;
&lt;br&gt;
us</description>
    </item>
    <item>
      <pubDate>Tue, 06 Jan 2009 13:05:30 -0500</pubDate>
      <title>Re: Decimals from comma to dot</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/241937#620061</link>
      <author>Vadim Teverovsky</author>
      <description>Look up the help for the fopen command to see how to use that, then read in &lt;br&gt;
the string (fileread), then use strrep, followed by textscan.&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
&quot;Fiona Buckley&quot; &amp;lt;buckley_fiona@yahoo.com&amp;gt; wrote in message &lt;br&gt;
news:gjvfqq$muv$1@fred.mathworks.com...&lt;br&gt;
&amp;gt; Hi,&lt;br&gt;
&amp;gt; I've got a file in ASCII format with decimal values comma seperated and &lt;br&gt;
&amp;gt; columns are seperated by tab. The columns either have strings or floating &lt;br&gt;
&amp;gt; numbers and my first column is in a ISO time-date format.&lt;br&gt;
&amp;gt; The file to be imported has column headers and titles which I don't need &lt;br&gt;
&amp;gt; however, I do need all the string data and the floating number data from &lt;br&gt;
&amp;gt; the general file.&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; I want to write a script to import this data, but as the floating points &lt;br&gt;
&amp;gt; numbers are comma seperated I can't seem to manage. I previously wrote &lt;br&gt;
&amp;gt; scripts to do this but up to now my decimals were always dot seperated. No &lt;br&gt;
&amp;gt; matter what I do now I seem to be stuck. Here under some of the many &lt;br&gt;
&amp;gt; functions I tried and what happened:&lt;br&gt;
&amp;gt; A) importdata  - gives me a strucutre with one data field and one textdata &lt;br&gt;
&amp;gt; field but almost all the strings have been trunckated and the numerical &lt;br&gt;
&amp;gt; values are combined (i.e. 3,34 6,91 9,32 gives me 3 346 91932)&lt;br&gt;
&amp;gt; B) fopen - error message saying that the variable is undefined&lt;br&gt;
&amp;gt; C) textscan or textread - error message as the data is not recognised&lt;br&gt;
&amp;gt; D) strrep - I can't replace the string as I can't open the file&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; Does anyone have an idea???&lt;br&gt;
&amp;gt; Cheers&lt;br&gt;
&amp;gt; Fiona </description>
    </item>
    <item>
      <pubDate>Wed, 07 Jan 2009 10:08:01 -0500</pubDate>
      <title>Re: Decimals from comma to dot</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/241937#620241</link>
      <author>Fiona Buckley</author>
      <description>&quot;us &quot; &amp;lt;us@neurol.unizh.ch&amp;gt; wrote in message &amp;lt;gjvi08$qab$1@fred.mathworks.com&amp;gt;...&lt;br&gt;
&amp;gt; &quot;Fiona Buckley&quot;&lt;br&gt;
&amp;gt; &amp;gt; 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...&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; a hint:&lt;br&gt;
&amp;gt; other CSSMers have proposed a PERL script to do the conversion before using any one of the ML input procedures...&lt;br&gt;
&amp;gt; look for PERL in this NG...&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; us&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
Thanks for the hint ;o)&lt;br&gt;
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: &lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;??? Error using ==&amp;gt; replaceinfile at 63&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Can't do inplace edit on Down: File exists.&lt;br&gt;
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? &lt;br&gt;
&lt;br&gt;
Cheers&lt;br&gt;
Fiona</description>
    </item>
    <item>
      <pubDate>Wed, 07 Jan 2009 10:39:01 -0500</pubDate>
      <title>Re: Decimals from comma to dot</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/241937#620245</link>
      <author>Pekka Kumpulainen</author>
      <description>&quot;Fiona Buckley&quot; &amp;lt;buckley_fiona@yahoo.com&amp;gt; wrote in message &amp;lt;gk1uu1$8d7$1@fred.mathworks.com&amp;gt;...&lt;br&gt;
&amp;gt; &quot;us &quot; &amp;lt;us@neurol.unizh.ch&amp;gt; wrote in message &amp;lt;gjvi08$qab$1@fred.mathworks.com&amp;gt;...&lt;br&gt;
&amp;gt; &amp;gt; &quot;Fiona Buckley&quot;&lt;br&gt;
&amp;gt; &amp;gt; &amp;gt; 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...&lt;br&gt;
&amp;gt; &amp;gt; &lt;br&gt;
&amp;gt; &amp;gt; a hint:&lt;br&gt;
&amp;gt; &amp;gt; other CSSMers have proposed a PERL script to do the conversion before using any one of the ML input procedures...&lt;br&gt;
&amp;gt; &amp;gt; look for PERL in this NG...&lt;br&gt;
&amp;gt; &amp;gt; &lt;br&gt;
&amp;gt; &amp;gt; us&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; Thanks for the hint ;o)&lt;br&gt;
&amp;gt; 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: &lt;br&gt;
&amp;gt;             ??? Error using ==&amp;gt; replaceinfile at 63&lt;br&gt;
&amp;gt;             Can't do inplace edit on Down: File exists.&lt;br&gt;
&amp;gt; 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? &lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; Cheers&lt;br&gt;
&amp;gt; Fiona&lt;br&gt;
&lt;br&gt;
Hi, can you give a more detailed example of what you are doing?&lt;br&gt;
How do you call replaceinfile, which file names you have etc?&lt;br&gt;
You can also email me directly (Assuming you use the replaceinfile function I posted), I'll be happy to try to fix any problems.&lt;br&gt;
&lt;br&gt;
Perl is not included in my native languages, sorry.. It was originally made  to do exactly what you are trying to do.</description>
    </item>
    <item>
      <pubDate>Wed, 07 Jan 2009 18:52:01 -0500</pubDate>
      <title>Re: Decimals from comma to dot</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/241937#620327</link>
      <author>per isakson</author>
      <description>&quot;Fiona Buckley&quot; &amp;lt;buckley_fiona@yahoo.com&amp;gt; wrote in message &amp;lt;gjvfqq$muv$1@fred.mathworks.com&amp;gt;...&lt;br&gt;
&amp;gt; Hi, &lt;br&gt;
&amp;gt; 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.&lt;br&gt;
&amp;gt; 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. &lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; 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: &lt;br&gt;
&amp;gt; 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)&lt;br&gt;
&amp;gt; B) fopen - error message saying that the variable is undefined&lt;br&gt;
&amp;gt; C) textscan or textread - error message as the data is not recognised&lt;br&gt;
&amp;gt; D) strrep - I can't replace the string as I can't open the file&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; Does anyone have an idea??? &lt;br&gt;
&amp;gt; Cheers&lt;br&gt;
&amp;gt; Fiona&lt;br&gt;
&lt;br&gt;
One possibility is to run this function as a separate step. It doesn't work with comma separated files and it will replace commas in the header (if there is one) &lt;br&gt;
/ per&lt;br&gt;
&lt;br&gt;
function    comma2point_overwrite( filespec )&lt;br&gt;
% replaces all occurences of comma (&quot;,&quot;) with point (&quot;.&quot;) in a text-file.&lt;br&gt;
% Note that the file is overwritten, which is the price for high speed.&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;file    = memmapfile( filespec, 'writable', true );&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;comma   = uint8(',');&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;point   = uint8('.');&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;file.Data( transpose( file.Data==comma) ) = point;&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;delete(file)&lt;br&gt;
end</description>
    </item>
    <item>
      <pubDate>Mon, 21 Sep 2009 10:18:02 -0400</pubDate>
      <title>Re: Decimals from comma to dot</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/241937#681502</link>
      <author>Toby </author>
      <description>just use notepad 2 (download &lt;a href=&quot;http://www.flos-freeware.ch/notepad2.html)&quot;&gt;http://www.flos-freeware.ch/notepad2.html)&lt;/a&gt;&lt;br&gt;
it replaces commas with dots much faster an much simpler.</description>
    </item>
    <item>
      <pubDate>Mon, 21 Sep 2009 11:50:07 -0400</pubDate>
      <title>Re: Decimals from comma to dot</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/241937#681517</link>
      <author>Oleg Komarov</author>
      <description>or simply in the international settings of your operating system, switch them to a comma-delimiting-decimal system. For example to the italian setting.&lt;br&gt;
&lt;br&gt;
This method could be faster if u have to import many files and if they are big.&lt;br&gt;
&lt;br&gt;
Oleg</description>
    </item>
    <item>
      <pubDate>Tue, 03 Nov 2009 22:37:02 -0500</pubDate>
      <title>Re: Decimals from comma to dot</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/241937#691867</link>
      <author>Diego </author>
      <description>This script is great!!</description>
    </item>
    <item>
      <pubDate>Tue, 10 Nov 2009 22:28:01 -0500</pubDate>
      <title>Re: Decimals from comma to dot</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/241937#693653</link>
      <author>Laura </author>
      <description>I also need to get rid of commas, but I'm hoping to find a solution that doesn't overwrite the original file. Does anyone know where I could find that?&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
&quot;per isakson&quot; &amp;lt;poi.nospam@bimDOTkthDOT.se&amp;gt; wrote in message &amp;lt;gk2tkh$64l$1@fred.mathworks.com&amp;gt;...&lt;br&gt;
&amp;gt; &quot;Fiona Buckley&quot; &amp;lt;buckley_fiona@yahoo.com&amp;gt; wrote in message &amp;lt;gjvfqq$muv$1@fred.mathworks.com&amp;gt;...&lt;br&gt;
&amp;gt; &amp;gt; Hi, &lt;br&gt;
&amp;gt; &amp;gt; 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.&lt;br&gt;
&amp;gt; &amp;gt; 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. &lt;br&gt;
&amp;gt; &amp;gt; &lt;br&gt;
&amp;gt; &amp;gt; 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: &lt;br&gt;
&amp;gt; &amp;gt; 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)&lt;br&gt;
&amp;gt; &amp;gt; B) fopen - error message saying that the variable is undefined&lt;br&gt;
&amp;gt; &amp;gt; C) textscan or textread - error message as the data is not recognised&lt;br&gt;
&amp;gt; &amp;gt; D) strrep - I can't replace the string as I can't open the file&lt;br&gt;
&amp;gt; &amp;gt; &lt;br&gt;
&amp;gt; &amp;gt; Does anyone have an idea??? &lt;br&gt;
&amp;gt; &amp;gt; Cheers&lt;br&gt;
&amp;gt; &amp;gt; Fiona&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; One possibility is to run this function as a separate step. It doesn't work with comma separated files and it will replace commas in the header (if there is one) &lt;br&gt;
&amp;gt; / per&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; function    comma2point_overwrite( filespec )&lt;br&gt;
&amp;gt; % replaces all occurences of comma (&quot;,&quot;) with point (&quot;.&quot;) in a text-file.&lt;br&gt;
&amp;gt; % Note that the file is overwritten, which is the price for high speed.&lt;br&gt;
&amp;gt;     file    = memmapfile( filespec, 'writable', true );&lt;br&gt;
&amp;gt;     comma   = uint8(',');&lt;br&gt;
&amp;gt;     point   = uint8('.');&lt;br&gt;
&amp;gt;     file.Data( transpose( file.Data==comma) ) = point;&lt;br&gt;
&amp;gt;     delete(file)&lt;br&gt;
&amp;gt; end</description>
    </item>
    <item>
      <pubDate>Thu, 26 Aug 2010 12:57:04 -0400</pubDate>
      <title>Re: Decimals from comma to dot</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/241937#774596</link>
      <author>Akin  Sahin</author>
      <description>&quot;per isakson&quot; &amp;lt;poi.nospam@bimDOTkthDOT.se&amp;gt; wrote in message &amp;lt;gk2tkh$64l$1@fred.mathworks.com&amp;gt;...&lt;br&gt;
&amp;gt; &quot;Fiona Buckley&quot; &amp;lt;buckley_fiona@yahoo.com&amp;gt; wrote in message &amp;lt;gjvfqq$muv$1@fred.mathworks.com&amp;gt;...&lt;br&gt;
&amp;gt; &amp;gt; Hi, &lt;br&gt;
&amp;gt; &amp;gt; 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.&lt;br&gt;
&amp;gt; &amp;gt; 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. &lt;br&gt;
&amp;gt; &amp;gt; &lt;br&gt;
&amp;gt; &amp;gt; 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: &lt;br&gt;
&amp;gt; &amp;gt; 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)&lt;br&gt;
&amp;gt; &amp;gt; B) fopen - error message saying that the variable is undefined&lt;br&gt;
&amp;gt; &amp;gt; C) textscan or textread - error message as the data is not recognised&lt;br&gt;
&amp;gt; &amp;gt; D) strrep - I can't replace the string as I can't open the file&lt;br&gt;
&amp;gt; &amp;gt; &lt;br&gt;
&amp;gt; &amp;gt; Does anyone have an idea??? &lt;br&gt;
&amp;gt; &amp;gt; Cheers&lt;br&gt;
&amp;gt; &amp;gt; Fiona&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; One possibility is to run this function as a separate step. It doesn't work with comma separated files and it will replace commas in the header (if there is one) &lt;br&gt;
&amp;gt; / per&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; function    comma2point_overwrite( filespec )&lt;br&gt;
&amp;gt; % replaces all occurences of comma (&quot;,&quot;) with point (&quot;.&quot;) in a text-file.&lt;br&gt;
&amp;gt; % Note that the file is overwritten, which is the price for high speed.&lt;br&gt;
&amp;gt;     file    = memmapfile( filespec, 'writable', true );&lt;br&gt;
&amp;gt;     comma   = uint8(',');&lt;br&gt;
&amp;gt;     point   = uint8('.');&lt;br&gt;
&amp;gt;     file.Data( transpose( file.Data==comma) ) = point;&lt;br&gt;
&amp;gt;     delete(file)&lt;br&gt;
&amp;gt; end&lt;br&gt;
&lt;br&gt;
Thank you Per! This is a great help!</description>
    </item>
  </channel>
</rss>

