
Function c = strsplitchar(s,delim,esc,coll) splits the string s using the delimiter delim, and returns a cell-array of strings, c. If input argument s is a cell-array of strings, output argument c will be a cell-array of cell-arrays of strings. Input argument delim should hold one character. At default, delim holds the space character. Input argument esc should hold one character, which is different from delim. At default, esc holds the backslash character. Two escaped sequences are assumed: [esc delim] to prevent splitting at that occurence of delim, and [esc esc] to eventually write the character of esc on itself. Input argument coll is a boolean. At default, it is true. If it is true, multiple occurrences of (unescaped) delim will result in one single split. Otherwise, as many splits will be effectuated. The second, third and fourth input arguments are optional. The default value is also applied, if the argument is given as an empty matrix []. (c) 2026 fabien van mook 2026.08.20 release of this file within package "fvm-optionmanip" under GNU GPLv3+