There does not seem to be a difference in the use of \n or \r. I would like to see the \r only return a carriage return and not a new line as it does in C.
MATLAB: Does \r (carriage return) also create a new line when printing to the Command Window
commandfeedMATLAB
Related Question
- How to use fprintf to print strings and words
- How to have the loop counter display on one line instead of printing carriage returns in MATLAB 7.8 (R2009a)
- Converting Words to code
- Invalid escape sequence appears in format string. See help sprintf for valid escape sequences
- Odd behavior combining sprintf and fprintf
- Doubt in fprintf with double bar
- Printing table susing fprintf
- Input of linebreak into sprintf
Best Answer