#!/usr/bin/env python # import required modules: # import os import sys # use numpy to read a matrix from a file: # the data must be comma separated: # 0, 1, 2 # 3, 4, 5 # import numpy as np m = np.loadtxt(sys.argv[1], dtype='f', delimiter=',') print(m) # # end of file