For some reason I need to save a matrix to a .txt file without an extra blank line in the end. For example, when I save [1;2;3] to a text file, the file will have an empty forth row, which I want to get rid of. I've tried 'save', 'dlmwrite', 'fprintf',…but none of them worked.
MATLAB: Save text files without an empty line in the end
formattext file
Best Answer