I'm trying to create a sine wave audio signal within MatLab based on this function:

So far I have created a vector x that starts at 0, increments in 0.1 to 10
Followed by this:
y = 3*sin(x(2*pi/4))+2;
I have multiplied x by 2*pi/4 in order to resize the period to a quarter of its size, but I have errors regarding indexes being positive.
Also, is it at all possible to actually create a signal at a specific Hz. For example if I wanted a sine wave at 800Hz?
fftafter I master the basics first. - user1574598