Updated for Matlab2012 compatibility

strsplit() has different parameter order depending on matlab version