newline
Create newline character
Syntax
Description
c = newline
creates a newline character. newline
is
equivalent to char(10)
or sprintf('\n')
. Use
newline
to concatenate a newline character onto a character
vector or a string, or to split text on newline characters.
Examples
Tips
The
newline
function does not return a carriage return character. A carriage return is equivalent tochar(13)
orsprintf('\r')
.
Extended Capabilities
Version History
Introduced in R2016b