convert multiple .txt into .mat in same folder
Show older comments
I want to automatically convert multiple .txt files in a folder into .mat file in same folder . How can i do it programmatically?
2 Comments
Rik
on 23 Aug 2018
That depends on the contents of your txt files. What kind of variable should the file be loaded to? Once you have a script that converts the file to variables, it should be almost trivial to put that in a loop and run that for each file.
cloudy snow
on 25 Aug 2018
Accepted Answer
More Answers (1)
Harshini Gangapuram
on 24 Mar 2019
0 votes
Could you just share how were you able to do that?
1 Comment
Rik
on 24 Mar 2019
This is not an answer. Please post this as a comment on either answer or the question itself and then delete this answer.
Categories
Find more on File Operations 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!