Main Content
Newline style
Newline character in generated code
Model Configuration Pane: Code Generation / Code Style
Description
Specify the newline character in the generated code.
Settings
Default
(default) | LF (Line Feed)
| CR+LF (Carriage Return + Line Feed)
Default: Default
- Default
Generates the newline character based on the operating system that the code is generated on.
- LF (Line Feed)
Generates the Line Feed character as the newline character in the generated code.
"\n"
is inserted as the newline character.- CR+LF (Carriage Return + Line Feed)
Generates the Carriage Return + Line Feed character as the newline character in the generated code.
"\r\n"
is inserted as the newline character.
Recommended Settings
Application | Setting |
---|---|
Debugging | No impact |
Traceability | No impact |
Efficiency | No impact |
Safety precaution | No impact |
Programmatic Use
Parameter: NewlineStyle |
Type: character vector |
Value: 'Default' |'LF' |'CR+LF' |
Default: 'Default' |
Version History
Introduced in R2018a