I have a text file like this column wise:
0,472412
0,455627
0,439148
0,421753
...
0,116577
0,086670
0,057373
0,027161
How can I convert the comma into dot in matlab?
This post on Matlabs site suggests:
function comma2point_overwrite( filespec )
% replaces all occurences of comma (",") with point (".") in a text-file.
% Note that the file is overwritten, which is the price for high speed.
file = memmapfile( filespec, 'writable', true );
comma = uint8(',');
point = uint8('.');
file.Data( transpose( file.Data==comma) ) = point;
delete(file)
end
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With