Question

Write the codes and plot the graphs of the following sine waves in Matlab: a. Sin(2πft)...

Write the codes and plot the graphs of the following sine waves in Matlab:

a. Sin(2πft)

b. 1/3Sin(2π(3f)t)

c. 4/π[Sin(2πft) + 1/3Sin(2π(3f)t]

d. 4[Sin(2πft) + 1/3Sin(2π(3f)t]

0 0
Add a comment Improve this question Transcribed image text
Answer #1

%a)Sin(2pift)
%Initialize Time and Frequency
t = 0:0.01:1;
f = 1;

%Sine Function
x1 = sin(2*pi()*f*t);

%Plot
plot(t,x1);
xlabel('time (in seconds)');

%b)1/3 Sin(2pi(3f)t)
%Initialize Time and Frequency
t = 0:0.01:1;
f = 2;

%Sine Function
x2 = (1/3)*sin(2*pi()*3*f*t);

%Plot
plot(t,x2);
xlabel('time (in seconds)');

%c)4/π[Sin(2pift) + 1/3Sin(2pi(3f)t]
%Initialize Time and Frequency
t = 0:0.01:1;
f = 2;

%Sine Function
x3 = (4/pi()) * (sin(2*pi()*f*t) + (1/3)*sin(2*pi()*3*f*t));

%Plot
plot(t,x3);
xlabel('time (in seconds)');

%d)4[Sin(2pift) + 1/3Sin(2pi(3f)t]
%Initialize Time and Frequency
t = 0:0.01:1;
f = 2;

%Sine Function
x4 = (4) * (sin(2*pi()*f*t) + (1/3)*sin(2*pi()*3*f*t));

%Plot
plot(t,x4);
xlabel('time (in seconds)');

Add a comment
Know the answer?
Add Answer to:
Write the codes and plot the graphs of the following sine waves in Matlab: a. Sin(2πft)...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT