Question

Q1. Plot 20 periods of a triangle wave and its derivative with a fundamental frequency of 50 Hz. The sample rate is 500 Hz.

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

MATLAB CODE PLOT TRIANGULAR WAVE AND ITS DERIVATIVE:

f0=50;
fs=500;
t=0:1/fs:0.4; %time vector
tri=sawtooth(2*pi*f0*t,1/2); %triangular wave
subplot(2,1,1)
plot(t,tri)
xlabel('time')
ylabel('Triangular wave')
title('Aylins signal')
t1=0:1/fs:(0.4-1/fs);
der_tri=diff(tri); % derivative of triangular wave
subplot(2,1,2)
plot(t1,der_tri)
xlabel('time')
ylabel('Derivative of triangular wave')
title('Aylins signal Derivative')

Plot:

Aylins signal 0.5 3 0.5 0 0.05 .1 0.15 0.2 0.25 0.3 0.35 0.4 time Aylins signal Derivative 0.5 0.5 0 0.05 1 0.15 0.2 0.25 0.3

Add a comment
Know the answer?
Add Answer to:
Q1. Plot 20 periods of a triangle wave and its' derivative with a fundamental frequency of 50 Hz....
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
  • Q1. Plot 20 periods of a triangle wave and its' derivative with a fundamental frequency of...

    Q1. Plot 20 periods of a triangle wave and its' derivative with a fundamental frequency of 50 Hz. The sample rate is 500 Hz. Set the time vector as [o, 0.4] and increase by 1/f, Use subplot and grid on commands, label all the axes and name the graph with your name, i.e: Aylin's Signal, Aylin's Signal Derivative. (10 pts) Hint: Use sawtooth function, in order to obtain fully triangular wave, construct the signal as sawtooth (wt, 1/2)

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