How to convert a file from .mat to .csv
1 view (last 30 days)
Show older comments
I have to convert a data table from .mat to .csv but I don't know how to do that.
0 Comments
Answers (2)
Image Analyst
on 30 Apr 2015
Try something like this
storedStructure = load(matFileName); % Read in data from the mat file.
dataTable = storedStructure.dataTable; % Whatever you called it when you saved it.
csvwrite(csvfile, dataTable); % Save to disk in csv format.
0 Comments
Giulia Zanetti
on 10 May 2015
1 Comment
Walter Roberson
on 10 May 2015
storedStructure = load('YourFileNameGoesHere.mat');
See Also
Categories
Find more on Data Type Conversion in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!