0% found this document useful (0 votes)
19 views3 pages

Final Matlab Task 2

The document involves symbolic math operations in MATLAB. It defines symbolic variables, finds the roots of a polynomial, performs fraction operations on symbolic expressions, substitutes values into symbolic expressions, and takes the inverse Laplace transform of a sum of terms.

Uploaded by

Zulfiqar Ali
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
19 views3 pages

Final Matlab Task 2

The document involves symbolic math operations in MATLAB. It defines symbolic variables, finds the roots of a polynomial, performs fraction operations on symbolic expressions, substitutes values into symbolic expressions, and takes the inverse Laplace transform of a sum of terms.

Uploaded by

Zulfiqar Ali
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 3

>> syms a;

>> syms b;

>> syms s;

>> roots([1 4 8])

ans =

-2.0000 + 2.0000i

-2.0000 - 2.0000i

>> a=s;

>> b=(s-2-2i)*(s-2+2i)

b=

(s - 2 - 2*i)*(s - 2 + 2*i)

>> A=a/b;

>> B=A*(s-2-2i)

B=

s/(s - 2 + 2*i)

>> B=subs(B,s,-2-2i)

B=

1/2 + i/2
>> C=A*(s-2+2i)

C=

s/(s - 2 - 2*i)

>> C=subs(C,s,-2+2i)

C=

1/2 - i/2

>> D=((5+0.5i)/(s-2+2i)+(0.5-0.5i)/(s-2-2i))

D=

(1/2 - i/2)/(s - 2 - 2*i) + (5 + i/2)/(s - 2 + 2*i)

>> E=ilaplace(D)

E=

exp(t*(2 - 2*i))*(5 + i/2) + exp(t*(2 + 2*i))*(1/2 - i/2)

>> pretty(E)

/i \ / i\

exp(t (2 - 2 i)) | - + 5 | + exp(t (2 i + 2)) | 1/2 - - |


\2 / \ 2/

>>

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy