- #1
Lolsauce
- 23
- 0
So all I'm trying to do is plot y = (2sin(3w))/w, w is the angular frequency. I basically want this graph in radians. So this is what I did at first:
But when I do this I get a graph of nothing, I assumed it was in radians by default. Next I tried this
I knew angular frequency is 2pi/T, so I tried converting the values of x to radians, but it didn't work either. Any tips?
Code:
>> x = [0:.01:20] ; //want bounds from 0 to 20
y = 2.*((sin(3.*x))/x);
plot(y)
But when I do this I get a graph of nothing, I assumed it was in radians by default. Next I tried this
Code:
>> x = [0:.01:20] ; //want bounds from 0 to 20
y = 2.*((sin(3.*(2.*pi)/x))/x);
plot(y)
I knew angular frequency is 2pi/T, so I tried converting the values of x to radians, but it didn't work either. Any tips?