Skip to main content
deleted 1 character in body
Source Link
mrz
  • 11.8k
  • 2
  • 26
  • 85

I have exported a list of 2d coordinates as a List:

Export["F:\\coordinates.dat", coordinates, "List"];

You can access the data here: http://pastebin.com/wFSt9DiD

Now I would like to read the coordinates back with:

coordinates = Import["F:\\coordinates.dat", "List"];

So far this works.

But, when I want to plot the data with ListPlot the plot is empty.

When I try Flatten[coordinates], the coordinates remainsremain unchanged.

It seems that the imported data is imported as a text list.

How can I access the data in the list?

I have exported a list of 2d coordinates as a List:

Export["F:\\coordinates.dat", coordinates, "List"];

You can access the data here: http://pastebin.com/wFSt9DiD

Now I would like to read the coordinates back with:

coordinates = Import["F:\\coordinates.dat", "List"];

So far this works.

But, when I want to plot the data with ListPlot the plot is empty.

When I try Flatten[coordinates], the coordinates remains unchanged.

It seems that the imported data is imported as a text list.

How can I access the data in the list?

I have exported a list of 2d coordinates as a List:

Export["F:\\coordinates.dat", coordinates, "List"];

You can access the data here: http://pastebin.com/wFSt9DiD

Now I would like to read the coordinates back with:

coordinates = Import["F:\\coordinates.dat", "List"];

So far this works.

But, when I want to plot the data with ListPlot the plot is empty.

When I try Flatten[coordinates], the coordinates remain unchanged.

It seems that the imported data is imported as a text list.

How can I access the data in the list?

Source Link
mrz
  • 11.8k
  • 2
  • 26
  • 85

Reading an exported List

I have exported a list of 2d coordinates as a List:

Export["F:\\coordinates.dat", coordinates, "List"];

You can access the data here: http://pastebin.com/wFSt9DiD

Now I would like to read the coordinates back with:

coordinates = Import["F:\\coordinates.dat", "List"];

So far this works.

But, when I want to plot the data with ListPlot the plot is empty.

When I try Flatten[coordinates], the coordinates remains unchanged.

It seems that the imported data is imported as a text list.

How can I access the data in the list?