Create rg2pos.m