I have data in file.txt which can be expressed by 20000x11 matrix. I do not want to import all of these data. How can I plot graph of the column 1 & column 4?
|
If the data are comma-delimited and saved as
imports columns 1 and 3, giving:
For comparison,
gives
More information may be found here ("How to Import a Spreadsheet") |
|||||||||||||
|
|
|||||||||||
|
|
If the file is very large and importing it takes too much memory, you can use external tools to cut the columns you are interested in. You can often call these tools directly from Mathematica, for example
This will use awk to cut columns 1 and 4. This approach can be significantly faster than |
|||||
|

Importis too slow for you, you can try setting up a custom importer function similarly to how it was done here. – Leonid Shifrin May 22 '12 at 16:48