Using MATLAB for digital video recording