Python String Mid Function Example Matlab