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

30 $

File Name: 代写_R_C_matlab_ECE_213_Spring_2019_Continuous-Time_Signals_&_Systems.zip
File Size: 668.82 KB

SKU: 0238804304 Category: Tags: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,

Or Upload Your Assignment Here:


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)=V0⋅rect⎜⎝ 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⋅(1−e−2)⋅e−(t−2τ)/τ t>2τ (discharging;pulseis”off”)
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)= 1⋅e−t/τ τ
and write the output voltage as the convolution of h and x:
∞ y(t)=h(t)*x(t)= ∫h(r)⋅x(t−r)⋅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 #1–4 is worth 20 points, plus 5 Mastery points, if appropriate. (There are no Mastery points after the due date.)
• Design Specs #5–7 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 #5–7 without meeting all of Design Specs #1–4, and then lose those Bonus points once you have successfully met Design Specs #1–4.
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
30 $