Matlab code for analysis of movies