Question

Generate a sawtooth waveform using a matlab code. Frequency of sawtooth wave is 50Hz. Peak peak amplitude is 2V. Using subplot window, plot the Saw tooth waveform and the folded saw tooth waveform Show the code and plots.

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

T = 5*(1/50); % Sawtooth waveform for 5 cycle
Fs = 500; %sampling frequency
ts = 1/Fs; %sampling period
t = 0:ts:T-ts;
x=sawtooth(2*pi*50*t);
x = (x+1);
subplot(2,1,1);
plot(t,x);
xlabel ('Time');
ylabel ('Amplitude');
title ('Sawtooth Waveform');
grid on
subplot(2,1,2);
plot(-t,x);
xlabel ('Time');
ylabel ('Amplitude');
title (' Folded Sawtooth Waveform');
grid on

Sawtooth Waveform Ф 1.5 0.5 0 0 0.01 0.02 0.03 0.04 0.05 0.06 0.07 0.08 0.09 0.1 Time Folded Sawtooth Waveform 2 Ф 1.5 0.5 0 -0.1 0.09 0.08 0.07 -0.06 0.05 -0.04 0.03 -0.02 -0.01 0 Time

Add a comment
Know the answer?
Add Answer to:
Generate a sawtooth waveform using a matlab code. Frequency of sawtooth wave is 50Hz. Peak peak...
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