I am trying to write data to a text file using writematrix.
writematrix([ 1 2 3 4 5 6]' ,'patate.txt')
MATLAB encodes it by default as UTF-8, and uses a Windows style return (CR LF) (example in Notepad++) :
The name-value pair 'Encoding' can be passed to writematrix, but the documentation is not explicit on how to use it for the system type:
writematrix([ 1 2 3 4 5 6]' ,'patate.txt', 'Encoding','UTF-8')
Is it possible to configure writematrix, or use another function, to have UTF-8 encoding but with Unix style returns (LF)?
