Hi guys.. I am getting very confused on some basic things which irretates me alot. I am trying make a dataset contanning a sine wave, the problem is though i cannot make it seem correct.
Here is my code:
fs = 100;
Ts = 1/fs;
n = 0:6;
f = 1/5;
y = chop(0.799760*sin(2*pi*f*(n*Ts)),5);
plot(n,y);
When i plot it doesn't look like a correct sine wave, ie. this example doesn't have period of 5 sec, but a lot more.. what am doing wrong.