How to create a .mat file corresponding to a .txt file, as per user input?
Show older comments
I have files in my Matlab directory in the form 'Phase3Subject1.txt', 'Phase3Subject2.txt',...'PhasexxSubjectyy.txt'. How do I take inputs for xx and yy from the user, and create the corresponding .mat file showing all the data stored in the .txt file? For example, if user gives input xx=2, yy=14, it should create 'Phase2Subject14.mat' file and show all the data that was stored in 'Phase2Subject14.txt'. Please give the entire code.
1 Comment
Azzi Abdelmalek
on 25 Jul 2015
Can you give more details about the data in your text file?
Accepted Answer
More Answers (0)
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!