Create gen2dv.m