I try to load a csv file in matlab to use a certain column as a vector for a ols estimation. To convert the csv files to struct i am using matlab by using this code. Learn more about csv mat mat csv convert conversion.