Why are you putting j = j+1? There is no need to put it with matlab.
X = load('x.mat');
Y = load('y.mat');
figure(); hold on
By the way, 245+10*n is never going to be 61503