I have a whole lot (hundreds of thousands) of rather large (>0.5MB) files, where data are numerical, but with a comma as decimal separator. It\'s impractical for me to use a
You may use txt2mat.
A = txt2mat('data.txt');
It will handle the data automatically. But you can explicitly say:
A = txt2mat('data.txt','ReplaceChar',',.');
P.S. It may not be efficient, but you can copy the part from the source file if you need it only for your specific data formats.