{[ promptMessage ]}

Bookmark it

{[ promptMessage ]}

hw4soln

# hw4soln - Problem#13.e 14 12 10 vc(t 8 6 4 2 0 0 0.2 0.4...

This preview shows pages 1–15. Sign up to view the full content.

This preview has intentionally blurred sections. Sign up to view the full version.

View Full Document

This preview has intentionally blurred sections. Sign up to view the full version.

View Full Document

This preview has intentionally blurred sections. Sign up to view the full version.

View Full Document

This preview has intentionally blurred sections. Sign up to view the full version.

View Full Document

This preview has intentionally blurred sections. Sign up to view the full version.

View Full Document

This preview has intentionally blurred sections. Sign up to view the full version.

View Full Document
Matlab Code : %%%this is the code for HW#4 clear all ; close all ; %%%%%%%%%%%%%%%% %%Problem#13.a, get Yin %%%%%%%%%%%%%%%% R1=15 ; R2=5 ; L = 1; C = 0.01; syms Yin Zin H Vc s t i_s Is vc Yin=1/(L*s+R1)+1/(R2+1/(C*s)) %%%%%%%%%%%%%%%% %%Problem#13.b, get Zin %%%%%%%%%%%%%%%% Zin=1/Yin %%%%%%%%%%%%%%%% %%Problem#13.d.i, get impulse response %%%%%%%%%%%%%%%% 0 0.2 0.4 0.6 0.8 1 0 2 4 6 8 10 12 14 Problem#13.e time(t) vc(t) matlab PFE

This preview has intentionally blurred sections. Sign up to view the full version.

View Full Document
% H is transfer function defined in terms of s, a symbol, % and R1, R2, C and L H = (1/(1+R2*C*s))*(L*s+R1)*(1+R2*C*s)/((1+R2*C*s)+C*s*(L*s+R1)) impulse_response=ilaplace(H) %%%%%%%%%%%%%%%% %%Problem#13.d.ii, get step response %%%%%%%%%%%%%%%% step_response=ilaplace(H/s) %%%%%%%%%%%%%%%% %%Problem#13.e, get vc(t) %%%%%%%%%%%%%%%% i_s = 2*exp(-5*t)*heaviside(t); Is=laplace(i_s) Vc = H*Is vc = ilaplace(Vc) time=linspace(0,1,50); vc_t=subs(vc,t,time); %%answer obtained by hand calculation, just for the sake of verification vc_ans=(80*(exp(-5*t)-exp(-10*t))-200*exp(-10*t)*t)*heaviside(t)
This is the end of the preview. Sign up to access the rest of the document.

{[ snackBarMessage ]}

### Page1 / 15

hw4soln - Problem#13.e 14 12 10 vc(t 8 6 4 2 0 0 0.2 0.4...

This preview shows document pages 1 - 15. Sign up to view the full document.

View Full Document
Ask a homework question - tutors are online