% assume your path is in the vector 'p' % in the output format mentioned here. load xy.mat -ascii plotpath(xy,p);