I have a .mat file loaded in workspace. I want to convert it into .csv file.
FileData = load('Trainset.mat');csvwrite('FileName.csv', FileData.M);
I used the above method to convert but i get this error. >> csv_Con Reference to non-existent field 'M'.
Error in csv_Con (line 2) csvwrite('FileName.csv', FileData.M);
>> >> >>
Best Answer