Question

(15 points) This problem is related to Problem 3.7 in the text. consider reviewing Section 3.2.1.1. The following MATLAB prog
0 0
Add a comment Improve this question Transcribed image text
Answer #1

The first term of the function has period 1/300s

The second term of the function has period 1/600s

So the time period of the function v(t) is LCM(1/300,1/600) = 1/300 s = Tperiod

4 periods = 4/300 s = Tmax

step = 1/20 * 1/300 s (To get 20 samples per period)

xmin = -Tperiod (Since the function starts at 0)

xmax = Tmax + Tperiod (Since the function ends at Tmax)

min(v(t)) = -5-2 = -7

max(v(t) = 5+2 = 7

ymin = min(v(t)) - 1 = -8

ymax = max(v(t)) + 1 = 8

-------------------------------------------Code------------------------------------------------

Tmax = 4/300;
step = 1/20 * 1/300;
xmin = -1/300;
xmax = Tmax + 1/300;
ymin = -8;
ymax = 8;

t = 0:step:Tmax;
v = 5*cos(2*pi*300*t) + 2*sin(2*pi*600*t + pi/2);
plot(t,v)
xlabel('time (seconds)')
ylabel('signal v(t)')
axis([xmin,xmax,ymin,ymax])

Tmax = 4/300; step = 1/20 * 1/300; xmin = -1/300; xmax = Tmax + 1/300; ymin = -8; ymax = 8; ороо со мол во ме IIIIIIIIIIII t

signal v(t) 10 5 time (seconds) *10-3

Add a comment
Know the answer?
Add Answer to:
(15 points) This problem is related to Problem 3.7 in the text. consider reviewing Section 3.2.1.1....
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
  • % PA 08: 3D Plots, Files, Functions % Using the script provided and the functions provided,...

    % PA 08: 3D Plots, Files, Functions % Using the script provided and the functions provided, complete the code % to be able to plot specified graphs. Script file contains a menu of % choices where user will select which plot to produce. % Functions contain the necessary code to plot. Please note that functions % do NOT take any arguments and do NOT return anything. % You are provided with two MS Excel files that you must use to...

  • CODE GIVEN % Create a program to plot the motion of the ping pong ball with...

    CODE GIVEN % Create a program to plot the motion of the ping pong ball with drag. % The program will take inputs for velocity in m/s and angle of launch. % note that with a high speed camera I estmated a launch speed for a ping % pong ball could be 30 m/s. vel=30; %m/s angle=60; % convert the degrees into radians so MATLAB likes it angle=angle*pi/180; % set initial values (time, distance, mass, gravity, drag) x(1)=0; % meters...

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