str = readlines(filename); str(4:4:end) = str(4:4:end) + "c"; writelines(str,filename)
where "filename" is the absolute or relative path to your text file, e.g., filename = 'C:\work\files\my_file.txt'.
str = readlines(filename); str(4:4:end) = str(4:4:end) + "c"; writelines(str,filename)
where "filename" is the absolute or relative path to your text file, e.g., filename = 'C:\work\files\my_file.txt'.
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!