ft Fm cos w f Phi phasor of ft0 Fm cos Phi Fm sin Phi ma
f(t) = F_m cos (w f + Phi) phasor of f(t0 = Fm cos Phi +, Fm sin Phi make a program in the matlab computer language that has the phasor turning and that of \'a\" and \"b\" while turning. The professor can vary the speed.
Solution
%program to generate sine wave
f= input(\'enter the frequency in hertz of the sine wave\');
t=0:.0001:5;
y=sin(2*pi*f*t);
plot(t,y);
ylabel (\'Amplitude\');
xlabel (\'Time Index\');
TITLE (\'Sine wave\'); %program to generate sine wave
f= input(\'enter the frequency in hertz of the sine wave\');
t=0:.0001:5;
y=sin(2*pi*f*t);
plot(t,y);
ylabel (\'Amplitude\');
xlabel (\'Time Index\');
TITLE (\'Sine wave\');
%program to generate cosine wave
f= input(\'enter the frequency in hertz of the sine wave\');
t=0:.0001:5;
y=cos(2*pi*f*t);
plot(t,y);
ylabel (\'Amplitude\');
xlabel (\'Time Index\');
TITLE (\'cosine wave\');
