You are trying to plot a line using single points. If you would like them to show up, consider using
plot(w,abs(X(1)),'o');
as opposed to
plot(w,abs(X(1)));
If you would like a line connecting these points, save each value of X in a vector and plot after completing the loop.