Here is my Matlab code for 5 different signals (sine wave, 2 square waves with d
ID: 1814452 • Letter: H
Question
Here is my Matlab code for 5 different signals (sine wave, 2 square waves with different duty cycles, sawtooth wave, and a triangle wave). Each one has a frequency of 1000 Hz, peak amplitude of 2 volts, and a DC offset of 2.5 volts. Also, one square wave has a 33% percent duty cycle and the other 50 percent. My question is, why is it that all my plots show 4 periods great except my triangle wave code? For some reason, I cannot get 4 periods of that wave to show. Also, how do I make it so that I can show all the plots at once when I run the code because as of right now, only the last plot written will show up. Lastly, how do I correcly calculate the sampling time for my time array? As of right now, it is .000001 which plots all of the waves great except the triangle wave. I got that number just by guessing. How do I calculate that?
Explanation / Answer
http://ctms.engin.umich.edu/CTMS/index.php?aux=Extras_Plot
http://www.giseis.alaska.edu/input/celso/matlabweb/waveform_suite/waveform.html
hey check this one. you will get your answer, surely!
just check it. if you really satisfy please rate with best answer.thank you dude..:-)))
Related Questions
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.