tsim: fix for Matlab 2011a