## Reading in delimited text files

| categories: io | tags: | View Comments

sometimes you will get data in a delimited text file format, .e.g. separated by commas or tabs. Matlab can read these in easily. Suppose we have a file containing this data:

1   3
3   4
5   6
4   8


It is easy to read this directly into variables like this:

import numpy as np


[ 1.  3.  5.  4.] [ 3.  4.  6.  8.]