CHDK IO for MATLAB