I want to write data to a text file several times without overwriting the old values
10 views (last 30 days)
Show older comments
When the code runs, the data values are written on the text file. That's okey but i want to save data of code of previous running. While next running ,Can the new data be written after previous data i mean to the next line?? The code is :
for i=1:1:6;
X = [i; V; A; D; L];
fprintf(fileID,'\r\n%6s %6s %6s %6s %6s\r\n','i','V','A','D','L');
fprintf(fileID,'\r\n%6d %6d %6d %6d %6d\r\n',X);
end
fclose(fileID);
0 Comments
Accepted Answer
More Answers (0)
See Also
Categories
Find more on Standard File Formats 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!