Answered step by step
Verified Expert Solution
Question
1 Approved Answer
matlab question, plotting Ir(t) = 20 + ar cos(nwot) => Car cos(nwot) n 0 256) = -o + a, con nuest) = a.catmund) on =
matlab question, plotting
Ir(t) = 20 + ar cos(nwot) => Car cos(nwot) n 0 256) = -o + a, con nuest) = a.catmund) on = {24 (-17), nodd n even, n 70 Using this cosine series, calculate the first five non-zero terms (including the DC term) of the series for 50 % duty cycle over the domain t = [-2 T, 2 1], taking 0o = 1 and A = 1. Choose the step size so that you get a smooth plot (see plotting instructions below). Create one graph containing plots of: a. The fundamental term (n=1) + DC offset (= 0.5) b. The sum of the first 3 terms (DC, fundamental, and 3rd harmonic (n=3)) C. The sum of the first 5 terms (DC, fundamental, 3rd, 5th and 7th harmonic) d. The exact function, which can be calculated using the MATLAB built-in function square () as follows: y_exact = 0.5+square (x + pi/2)/2; You can use the app on the linked web page to check that your plotted functions are correct. . For all assignments, always follow good graphing practices, including: a. Distinguish each series clearly (i.e., with different line types, and don't forget to include a legend). b. Title your plot. Note: your title should be more informative than simply Y vs X. c. Label all axes with a name and units. (When there are no units, indicate 'unitless'). For this particular problem, assume that the time unit is milliseconds, and the amplitude unit is centimeters. Note: it is not necessary to create a user-defined function for thisStep by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started