Question

Generate and plot sinusoids of frequencies from 100 Hz to 600 Hz in d single figure of s12e 2x3 in Matlab. Indicate the axes

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

Matlab code for the problem

x = 0:0.00001:1/100; % time t is from 0 to 0.01 seconds
figure

subplot(2,3,1) % first plot
Hz = 100;
plot(x,sin(2*pi*x*Hz));
title('100Hz'),xlabel('Time in sec'),ylabel('Amplitude');

subplot(2,3,2) % second plot
Hz = 200;
plot(x,sin(2*pi*x*Hz));
title('200Hz'),xlabel('Time in sec'),ylabel('Amplitude');

subplot(2,3,3) % third plot
Hz = 300;
plot(x,sin(2*pi*x*Hz));
title('300Hz'),xlabel('Time in sec'),ylabel('Amplitude');

subplot(2,3,4) % fourth plot
Hz = 400;
plot(x,sin(2*pi*x*Hz))
title('400Hz'),xlabel('Time in sec'),ylabel('Amplitude');

subplot(2,3,5) % fifth plot
Hz = 500;
plot(x,sin(2*pi*x*Hz));
title('500Hz'),xlabel('Time in sec'),ylabel('Amplitude');

subplot(2,3,6) % sixth plot
Hz = 600;
plot(x,sin(2*pi*x*Hz));
title('600Hz'),xlabel('Time in sec'),ylabel('Amplitude');

Screen Print of the code

x = 0:0.00001:1/100; % time t is from to 0.01 seconds figure 1 2 - 3 4 - 5 7 - 8 9 - 10 11 12 13 subplot(2,3,1) % first plot

Screen Print of the output

Figure 1 X + 100Hz 200Hz 300Hz 0.5 0.5 0.5 Amplitude -0.5 -0.5 -0.5 0.01 0.01 0.01 0.005 Time in sec 0.005 Time in sec 0.005

Add a comment
Know the answer?
Add Answer to:
Generate and plot sinusoids of frequencies from 100 Hz to 600 Hz in d single figure...
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
ADVERTISEMENT