Create extractcoordinates.m