Learn more about csv mat mat csv convert conversion. When writing matrix data to a file you can specify the file type as part of the file name in the second argument of the function call. To convert the csv files to struct i am using matlab by using this code.