added fitmodel2data.m