Question

Use Matlab to plot two cycles of the following ) waveforms: a. yi(t) = sin(200m) volts b· pd) =-1.0+ cos(2000m) volts c. y)--1.0 to 3.0 volt square wave at 1,000 Hz Then use Matlab to compute the max, min, average, and rms values for each of the signals listed above.

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

clear
clc
%y1
period=2/200;
t=linspace(0,2*period,1000);
y1=sin(200*pi*t);
figure
plot(t,y1)
grid on
y1_max=max(y1)
y1_min=min(y1)
y1_average=mean(y1)
y1_rms=rms(y1)
%y2
period=2/200;
t=linspace(0,2*period,1000);
y2=-1+cos(200*pi*t);
figure
plot(t,y2)
grid on
y2_max=max(y2)
y2_min=min(y2)
y2_average=mean(y2)
y2_rms=rms(y2)
%y3
f=1000;
period=1/1000;
t=linspace(0,2*period,1000);
y3=1+2*square(2*pi*f*t);
figure
plot(t,y3)
grid on
y3_max=max(y3)
y3_min=min(y3)
y3_average=mean(y3)
y3_rms=rms(y3)

Command Windovw Figure 1 File Edit View Inset Tools Desktop Window Help 1.0000 yl min- -1.0000 yl_average yl_rms - y2 max y2 min 3.4782e-17 0.7068 0.5 -2.0000 y2average - -0.9990 0.5 y2 rms y3 max y3 min УЗ average- gure 3 1.2241 Figure 2 Edit View Insert Tools Desktop Window Help File Edit View Insert Tools Desktop Window 0.005 0.01 0015 0.02 1.0040 2.2379 0.5 1.5 0.5 1.5 0.5 -2 0.005 0.01 0.015 0.02 0.5 1.5 -3 x 10

Add a comment
Know the answer?
Add Answer to:
Use Matlab to plot two cycles of the following ) waveforms: a. yi(t) = sin(200m) volts...
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