Fix for R2013a