some questions about how to read and write txt file on matlab
Show older comments
I have create an txt file as below:

then I can read it into matlab by csvread/dlmread, which is ok.but when I change the file as below, it will be never read again:

1. So how shall I read the txt file as above into matlab normally?
2. how shall I add or delete some date, such as numbers 1,2,4 or charactors a,b,c and so on into the txt file?
3. image that an txt file was written by an procedure about 1 time 1 data per 0.1 seconds and the txt file would be written done (completed), then I will read this file at once to get the last data by matlab and do some computing for it. question: how shall I know the file is done or not by matlab?
thank you
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!