# Matlab - plotting the Laplace of simple high-pass passive filter in the time domain

1. May 29, 2012

### odimachkie

1. The problem statement, all variables and given/known data

use matlab to model a lowpass and highpass filter

2. Relevant equations

the high-pass filter:
V(sin(ωt)) = 1/C ∫i dt + iR
V(ω/(s^2 + ω^2)) = 1/C ∫i dt + iR
⇔LAPLACE⇔
L(i) = (Vωs/R)(1/(s^2 + ω^2)(s + 1/RC)) ⇔ partial fractions...
⇔LAPLACE^-1⇔
V/2 (cos(t) + sin(t)) - (V/2) e^-t

hope i got that all right...

3. The attempt at a solution

I can plot the poles on the s-plane and I can successfully transform and inverse transform into a statement with cos & sin....all on paper.

this question is more of a plea for help with matlab. I'm hoping someone has experience doing this sort of thing with matlab as i have next to no matlab knowledge... and our prof has just tossed us into the deep end without any guidance. he doesn't even know how to use it.

any sort of reference would be helpful.

Last edited: May 29, 2012