Use DLTdv4 if you have an older MATLAB version') disp('that has the aviread function.') end % check to make sure we were called with the appropriate name if strcmpi(mfilename,'DLTdv6')==0 beep disp('Error: This program must be named "DLTdv6.m" to function properly.') return ...