How to create a .mat file corresponding to a .txt file, as per user input?
Ältere Kommentare anzeigen
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 Kommentar
Azzi Abdelmalek
am 25 Jul. 2015
Can you give more details about the data in your text file?
Akzeptierte Antwort
Weitere Antworten (0)
Kategorien
Mehr zu File Operations finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!