Main Content
mlreportgen.utils.makeSingleLineText
Convert input to single line
Syntax
Description
converts the input to a single line of text. Single spaces replace the line feeds and
carriage returns in the input.singleline
= mlreportgen.utils.makeSingleLineText(strchar_in
)
singleline = mlreportgen.utils.makeSingleLineText(
specifies the delimiter to use to replace line feeds and carriage returns.strchar_in
,delim
)
Examples
Convert Character Array to Single Line
devTitle = ['Thomas R. Lee'; ... 'Sr. Developer'; ... 'SFTware Corp.']; singleline = mlreportgen.utils.makeSingleLineText(devTitle)
singleline = 'Thomas R. Lee Sr. Developer SFTware Corp.'
Input Arguments
Output Arguments
Version History
Introduced in R2018b