[SOLVED] R C matlab ECE 213 Spring 2019 Continuous-Time Signals & Systems

$25

File Name: R_C_matlab_ECE_213_Spring_2019_Continuous-Time_Signals_&_Systems.zip
File Size: 602.88 KB

5/5 - (1 vote)

ECE 213 Spring 2019 Continuous-Time Signals & Systems
Computing Exercises Exercise SS-C1: Understanding Convolution, part I
[20pts] Consider the RC circuit shown to the right, with R = 10 and C = 2mF. The input voltage is x(t), and the output voltage is y(t).
For now, the input voltage is given by:
t x(t)=V0rect 2
where V0 = 12V and the time constant = RC. We are going to solve this circuit in two ways. First, without using convolution, we can show that the corresponding output voltage is:
t/ y ( t ) = V 0 ( 1 e
) 0 < t < 2 ( c h a r g i n g ; p u l s e i s ” o n ” ) V0(1e2)e(t2)/ t>2 (discharging;pulseisoff)
We will use this analytic solution to check to make sure our other (numerical) solution is correct. Second, using convolution, we start with the impulse response:
h(t)= 1et/
and write the output voltage as the convolution of h and x:
y(t)=h(t)*x(t)= h(r)x(tr)dr
0
We will solve for this output voltage numerically, by performing the convolution integral using MATLAB, at different values of time t. Because x(t) is a pulse, its value is either 0 or V0, and we only need to integrate over a relatively short period of time. However, because the argument is t r, and the integral begins at r = 0, you will need to think about what the limits of r should be as a function of t.
Design Specifications
1. Sketch x(t), and derive an expression for the convolution integral that is suitable to be coded in your script. Specifically, the integral equation above should be rewritten using the given x(t) and h(t), with correct limits of integration as functions of time t. Include the hand calculation when you submit the rest of your solution. [5]
2. Use MATLAB to construct the output voltage y(t) as an array suitable to be plotted, and using your expression derived in the hand calculation. The script should agree with the hand calculation. Print the M file to PDF with line numbers and a proper header. [5]
3. Plot your numerical solution for y(t) from t = 0 to t = 8. On the same figure, plot the two analytic solutions, each over the full time period (0 to 8), and each as a dotted line. They should cross each other at t = 2. Adjust the vertical axis to range from 0 to a value slightly larger than V0. Include the figure in your solution. [5]
[continued]

ECE 213 Spring 2019 Computing Exercise SS-C1 Continuous-Time Signals & Systems Understanding Convolution, part I
Design Specifications (continued)
4. Show that the two analytic solutions are equal to each other at t = 2. (This is a check that you transcribed the solutions correctly.) Show also that the maximum value of the numerical solution is approximately the same as the value of the two analytic solutions at t = 2, and that this maximum value occurs at approximately t = 2. (These are checks that the numerical solution is approximately equal to the analytic solution.) Include your output from the Command Window. [5]
5. Your script should be well organized and easy to understand. Include your name, a context (e.g., ECE 213, Exercise C1), the date you started, and a description. Add in-line comments to help the reader, and add sectioning to help organize your script. [+1]
6. The output and figure should be meaningful. For instance, there should be a legend, with expressions wherever possible and meaningful titles, descriptions, and legend text elsewhere. Use ms for the time axis and make the font sizes and line widths appropriate for the size of the figure. Clear the Command Window before your last run. [+2]
7. Your script should be robust and efficient. Define R, C, and V0, then define , and use variables for the rest of the script. Further, in the legend, any known quantities should be constructed rather than hardwired. The upper Y limit should depend on the value of V0.
Because C is in mF, = RC is in ms, and it turns out that you can use ms throughout, i.e., you never need to convert anything to seconds or work in seconds. [+3]
SUGGESTIONS:
You will need around 4000 points in your time array in order to have enough points in your convolution integral.
You will need two nested FOR loops, one that steps through the 4000 points in your time array and the other to perform the convolution integral at each value of time t.
NOTES:
Successful completion of Design Specs #14 is worth 20 points, plus 5 Mastery points, if appropriate. (There are no Mastery points after the due date.)
Design Specs #57 are worth Bonus points added onto your score. If your solution is poor, then you might earn Bonus points that are later taken away once you have fixed your solution. In other words, you might successfully meet Design Specs #57 without meeting all of Design Specs #14, and then lose those Bonus points once you have successfully met Design Specs #14.
ece213 C1 19-0223.doc

Reviews

There are no reviews yet.

Only logged in customers who have purchased this product may leave a review.

Shopping Cart
[SOLVED] R C matlab ECE 213 Spring 2019 Continuous-Time Signals & Systems
$25