I have a .dat file generated from MATLAB (with float values). I need to convert it to an array containing the same number of rows and columns as it did in the .dat file. Could anyone suggest a way of doing this? There is a \n at the end of each line which I want to remove. The .dat file read into Python looks like this:
12,18\n42,17\n60,16\n86,17\n120,17\n137,12\n169,10\n189,14\n215,9\n248,11\n273,12\n301,17\n319,8\n345,17\n378,14\n403,10\n423,10\n453,18\n483,10\n507,15\n10,43\n43,44\n60,38\n96,41\n114,41\n139,41\n168,43\n189,40\n215,37\n248,45\n268,45\n301,37\n321,35\n
And I would like the output to be in the following format:
12,18
42,17
...
where 12,42 and 18,17 are in different columns.
12,18to12, 18in the output format description ? That's not the same thing.,is a decimal place (it's not here in the UK) so I have rolled back the changes. @user1482980 can you clarify this point at all?