Try a bigger marker so you can see it easier:
plot(X,sel(i), 'b*-', 'MarkerSize', 15);
Is sel(i) a single number? This line makes me think it might be a vector:
sel(i)=sol(:,1) % Take all rows in column 1 of sol.
Are you sure you don't want to plot the whole thing at once AFTER you finish the loop?
