Insert a header in a txt file
Show older comments
How can I insert a header in a txt file without deleting the contents and the format of the txt file? I would like simply to insert a header on top of all the columns of data in order to specify the variable of each column.
3 Comments
KSSV
on 6 Dec 2021
How is your text file? What data it has?
Emilio Pulli
on 6 Dec 2021
Walter Roberson
on 6 Dec 2021
writetable instead of writematrix.
Accepted Answer
More Answers (0)
Categories
Find more on Text Files 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!