strsplit() function written locally. Note reversed parameter

Parameter order is reversed from 2013 Matlab version