Line breaks using dlmcell in Matlab - shows up in Notepad++ but not Notepad -


i using function dlmcell in matlab output text. want text on new line each time append using dlmcell.

when open written document in notepad++, each snippet of text on new line want it. however, opening in notepad comes windows, on same line. can tell me why is, , how fix it?

i'm assuming you're using string \n declare new line in output. notepad++ sufficient, because interprets new line \n. windows editor need include carriage return also:

substitute:

\n \r\n

this way not new line created, tells editor continue on next line.


to illustrate mean, open output file notepad++ , activate view > show symbol > characters , see like:

enter image description here

i wrote notepad++ , automatically adds cr (carriage return) , lf (line feed) @ end of every line. matlab doesn't if don't tell it. output file contains lf without above mentioned substitution.


i've had dlmcell, fex-function. in current version \r\n implemented actually. have newest version of function (download)? if not, else must wrong, please post code.


Comments

Popular posts from this blog

php - Submit Form Data without Reloading page -

linux - Rails running on virtual machine in Windows -