How can I convert multiple mat files in one csv file for my dataset, or can create datasource for further processing with feature extraction method. There are 2 matrices. testCase fields are shown and another is IAT i.e. continuous time series data.
    9 views (last 30 days)
  
       Show older comments
    
Accepted Answer
  Pankhuri Kasliwal
    
 on 7 Oct 2020
        Hi, 
Try this :
d=dir(fullpath(dirname,'*.mat'));
for i=1:length(d)
  load(d(i).name     % will leave whatever variable is in mat-file in memory
  [p,n]=fileparts(d(i).name);         % get path, name w/o extension
  csvwrite([fullfile(p,n) '.csv'],X)  % write to name w/ .csv extension
end
Additionally, refer to the following links for more details : 
More Answers (0)
See Also
Categories
				Find more on Database Toolbox 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!

