- Add Folder where your ".txt" file is to path of matlab.
- Or you can use absolute path to the text file to read it.
How can I read text file in MATLAB? (files include text)
2 次查看(过去 30 天)
显示 更早的评论
Greetings.
Actually, I want to read text file. but, when I write like
fopen('pathway\[AM] Ch1 (28-Jun-2017 16-53-20).txt')
this, ans(file ID) is -1.
So I go to folder where txt file located directly, but It cannot run function because function in the MATLAB folder(My Documents).
How can I read text file without folder movement?
0 个评论
回答(1 个)
Astik Sachan
2017-6-29
编辑:Walter Roberson
2017-6-29
1 个评论
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!