Matlab for loop animations - Stack Overflow