strsplit
Split string or character vector at specified delimiter
Syntax
Description
specifies additional delimiter options using one or more name-value pair
arguments. For example, to treat consecutive delimiters as separate delimiters,
you can specify C = strsplit(str,delimiter,Name,Value)'CollapseDelimiters',false.
Examples
Input Arguments
Name-Value Arguments
Output Arguments
Alternative Functionality
Update code that makes use of strsplit to use split instead. The default orientation for split is
by column. For example:
| Not Recommended | Recommended |
|---|---|
str = strsplit("1 2 3")str =
1×3 string array
"1" "2" "3" |
str = split("1 2 3")str =
3×1 string array
"1"
"2"
"3" |