Minor edit to make it compile under R2014b