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

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

View Full Document Right Arrow Icon
Background image of page 1

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

View Full DocumentRight Arrow Icon
Background image of page 2
Background image of page 3

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

View Full DocumentRight Arrow Icon
Background image of page 4
Background image of page 5

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

View Full DocumentRight Arrow Icon
Background image of page 6
Background image of page 7

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

View Full DocumentRight Arrow Icon
Background image of page 8
Background image of page 9

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

View Full DocumentRight Arrow Icon
Background image of page 10
Background image of page 11

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

View Full DocumentRight Arrow Icon
Background image of page 12
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
Background image of page 13

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

View Full DocumentRight Arrow Icon
% 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)
Background image of page 14
Image of page 15
This is the end of the preview. Sign up to access the rest of the document.

This document was uploaded on 07/25/2009.

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 Right Arrow Icon
Ask a homework question - tutors are online