Problems with Matlab Projects? You may face many Problems, but do not worry we are ready to solve your Problems. All you need to do is just leave your Comments. We will assure you that you will find a solution to your project along with future tips. On Request we will Mail you Matlab Codes for Registered Members of this site only, at free service...Follow Me.

Old Laplace Transform

Summary: This module examines the Laplace Transform, an analytical tool that produces exact solutions for small, closed-form, tractable systems. We use the Laplace transform to move toward a solution for the nerve fiber potentials modeled by the dynamic Strang Quartet in the earlier module of the same name.





The Laplace Transform is typically credited with taking dynamical problems into static problems. Recall that the Laplace Transform of the function h is {h(s)}0(st)h(t)dt.MATLAB is very adept at such things. For example:

EXAMPLE 1: The Laplace Transform in MATLAB


 >> syms t

 >> laplace(exp(t))

 ans = 1/(s-1)

 >> laplace(t*(exp(-t))

 ans = 1/(s+1)^2
      
The Laplace Transform of a matrix of functions is simply the matrix of Laplace transforms of the individual elements.

EXAMPLE 2: Laplace Transform of a matrix of functions

{(
t
tt
)}=(
1
s1
1
(s+1)2
)
Now, in preparing to apply the Laplace transform to our equation from the dynamic strang quartet module<diff></diff>x=Bx+g, we write it as
{
d
dt
 (x)
}
={Bx+g}
(1)
and so must determine how  acts on derivatives and sums. With respect to the latter it follows directly from the definition that
{Bx+g}={Bx}+{g}
=B{x}+{g}
.
(2)
Regarding its effect on the derivative we find, on integrating by parts, that {
d
dt
 (x)
}
=0(st)
d
dt
 (x(t))
dt
=x(t)(st)|0+s0(st)x(t)dt
.
 Supposing that x ands are such that x(t)(st)0 as t we arrive at
{
d
dt
 (x)
}
=s{x}x(0).
(3)
Now, upon substituting Equation 2 and Equation 3 into Equation 1 we find s{x}x(0)=B{x}+{g}, which is easily recognized to be a linear system for {x}, namely
(sIB){x}={g}+x(0).(4)
The only thing that distinguishes this system from those encountered since our first brush with these systems is the presence of the complex variable s. This complicates the mechanical steps of Gaussian Elimination or the Gauss-Jordan Method but the methods indeed apply without change. Taking up the latter method, we write {x}=(sIB)-1({g}+x(0)). The matrix(sIB)-1 is typically called the transfer function or resolvent, associated with B, at s. We turn to MATLAB for its symbolic calculation. (for more information, see the tutorial on MATLAB's symbolic toolbox). For example,

EXAMPLE 3


 >> B = [2 -1; -1 2]
 
 >> R = inv(s*eye(2)-B)
 
 R =
 
 [ (s-2)/(s*s-4*s+3), -1/(s*s-4*s+3)]
 
 [ -1/(s*s-4*s+3), (s-2)/(s*s-4*s+3)]
      
We note that (sIB)-1 is well defined except at the roots of the quadratic, s24s+3. This quadratic is the determinant of sIB and is often referred to as the characteristic polynomial of B. Its roots are called the eigenvalues of B.

EXAMPLE 4

As a second example let us take the B matrix of the dynamic Strang quartet module with the parameter choices specified in fib3.m, namely
B=(
-0.1350.1250
0.5-1.010.5
00.5-0.51
)
(5)
The associated (sIB)-1 is a bit bulky (please run fib3.m) so we display here only the denominator of each term, i.e.,
s3+1.655s2+0.4078s+0.0039.(6)
Assuming a current stimulus of the form i0(t)=
t3(
t
6
)
10000
 
and Em=0 brings ({g})(s)=(
0.191
(s+
1
6
)
4
0
0
)
 and so Equation 6 persists in {x}=(sIB)-1{g}=
0.191
(s+
1
6
)
4(s3+1.655s2+0.4078s+0.0039)
 
(
s2+1.5s+0.27
0.5s+0.26
0.2497
)
Now comes the rub. A simple linear solve (or inversion) has left us with the Laplace transform of x. The accursed

THEOREM 1: No Free Lunch Theorem

We shall have to do some work in order to recover x from {x}.
confronts us. We shall face it down in the Inverse Laplace module.

0 comments:

Post a Comment

Recent Comments

Popular Matlab Topics

Share your knowledge - help others

Crazy over Matlab Projects ? - Join Now - Follow Me

Sites U Missed to Visit ?

Related Posts Plugin for WordPress, Blogger...

Latest Articles

Special Search For Matlab Projects

MATLAB PROJECTS

counter

Bharadwaj. Powered by Blogger.