Create extract2doutline.m