Create collectData.m