Merge multiple .mat files based on specific file name structure
显示 更早的评论
Hi, I have over 300 .csv files that I converted to .mat files. The mat files have a specific naming culture like AB10*.mat AB11*.mat, ...AB31*.mat. So it is AB followed by day of the month followed by time.mat. I am trying to merge the files based on the date. So all files named as AB11*.mat should be able to merge. Edit: What would be the general procedure to do this?
6 个评论
Stephen23
2018-6-4
@Mehul Garg: what is your question?
Mehul Garg
2018-6-4
Stephen23
2018-6-4
@Mehul Garg: what do you mean by "merge": what do you want the output to be: one big .mat file, a text file, some other kind of file, a big variable in MATLAB memory, or a sequence of images displayed as a sequence of frames (like film) ?
Mehul Garg
2018-6-4
Stephen23
2018-6-5
@Mehul Garg: Can you please upload a few sample files by clicking the paperclip button.
KSSV
2018-6-5
files = dir('AB11*')
The above line should list the files strating with AB11.
采纳的回答
更多回答(0 个)
类别
在 帮助中心 和 File Exchange 中查找有关 Low-Level File I/O 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!