Windows(CR LF) to Unix (LF)
45 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Matthew Tyler Jeffries
am 13 Mär. 2019
Bearbeitet: per isakson
am 14 Mär. 2019
I am using the matlab function "writetable" to creat a .txt file that I can open with Notepad++. However, Notepad++ opens the document as Windows (CR LF), but I would like it to automatically open it as Unix (LF). Is there a code I can use in matlab to fix this?
Thank you.
Akzeptierte Antwort
per isakson
am 14 Mär. 2019
Bearbeitet: per isakson
am 14 Mär. 2019
You have a few options
- Open the file in Notepad++ and replace CRLF by LF as shown by the screen clip below.
- Use the solution, "Better control of the format", which I provided in my answer to your previous question. AFAIK: writetabel() doesn't let you control the new line character.
- Use writetable() and thereafter read the file, replace CRLF by LF, and overwrite the text file.

0 Kommentare
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Environment and Settings finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!