?
2012-11-19 07:50:38 UTC
t=0:%pi/100:2*%pi;
x = sin(t);
plot(t,x);
The problem is when I try to change x = sin(t) to x = sin(2*%pi*f*t) where
f = 50 the graph comes out all weird. I am trying to apply the formula sin(wt)
where w = 2*pi*f but to no avail.
The second part of what I am trying to achieve is to sample this sine wave at 1.25ms intervals.and compute the first 160 samples and plot the result against time. From working it out this should result in 10 cycles for a 50Hz sine wave but I cant seem to achieve this in scilab. It is really annoying me so please help.