How can I separate data in a MATLAB dat file into proper columns?

38 Views Asked by At

I am trying to read a dat file in MATLAB but my data is not correctly separated into columns. All of the data is in one single column.

I am not sure how to separate them into proper columns

What I am trying to do is to have the data separated into column like so:

Column A Column B
1 2
3 4

but what my file shows is:

Column A Column B
1 2
3 4
0

There are 0 best solutions below