| How do you create a matrix from a text file in MATLAB? - Stack OverflowThe easiest way to do it would be to use MATLAB's csvread function. There is also this tool which reads CSV files. You could do it yourself without too much difficulty either: Just loop over each line in the file and split it on commas and put it in your  stackoverflow.com |