Create spatial.m