You can't plot anything because your code is full of mistakes. For starters, x and y are both just one number so you don't have an series of data points to plot. The loop is wrong. Your code is also very difficult to read and badly laid out and this is contributing to your confusion. If you correct those things, you will have an easier time figuring out what's wrong. Do the following:
2. Don't cram too much stuff on each line. One statement per line. Look at the code examples in the MATLAB docs and emulate that style.
3. Don't start with "clear". Blindly clearing the workspace isn't desirable and if you use a function then the variables are all local to it and will never need cleaning like this anyway.