I am working with matlab in college and I need to generate sine wave whcih represents signal going through a wire.
But its not clear to me what t equals to and how can I multiply \$y\$ by \$t\$
this is the formula
$$y(t) = 1.2\sin(35.000\pi t+2.15\text{ rads})$$
This is my Matlab code
time = 1:1.0:10;
radstodegrees = 2.15*180/pi
y = 1.2*sin(35.000*pi*time*radstodegrees);
y = y*time
plot(y)
It gives me error when I want to multiply y*time
Anyone know where to go from here?
Best Answer