Ask Question, Ask an Expert

+61-413 786 465

info@mywordsolution.com

Ask Basic Finance Expert

Last week was a basic introduction to Matlab. This week you will learn how to use three built-in functions (laplace, ilaplace and dsolve).
Using the syms function

1. An expression can be represented using symbols with the syms function.
Let's study the following example:
syms x y % Declare two symbolic variables x and y
y = x^2 %Declare a function
z=diff(y) %Will calculate the derivative of y and store the value in z.

2. How to find the Laplace transform for an expression?
Example: Find the Laplace transform of sin(2t). From the table of Laplace transforms, the Laplace transform of sin(2t) is . Let us do the same calculation in Matlab.
syms t % Declare a symbolic variable t
F=laplace(sin(2*t)) %Calculate Laplace transform, store in F
pretty(F) % print the output in a more readable form

3. How to find the inverse Laplace transform for an expression?
Example: Find the inverse Laplace transform of From the previous example, the inverse Laplace transform is sin(2t). The following code will verify this calculation in Matlab.
syms s % Declare a symbolic variable s (the Laplace variable)
f=ilaplace(2/(s^2+4)) %Calculate inverse Laplace transform, store in F
pretty(f) % print the output in a more readable form

4. How to solve a differential equation in Matlab?
Example: Solve the differential equation , with initial conditions x(0)=1 and x'(0)= 0.
Matlab command:
dsolve('D2x+2*x=0', 'x(0) = 1, Dx(0) = 0')

Exercises:
1. Find the Laplace transforms of the following functions by hand and verify results using Matlab.
2. Find the inverse Laplace transform of the following functions by hand and verify results using Matlab.

1.
2. F(s)=
3. Solve the following differential equations by hand and verify results using Matlab.

with x(0) = 1, x' (0) = 0

with x(0) = 1, x' (0) = 0

Basic Finance, Finance

  • Category:- Basic Finance
  • Reference No.:- M91594608
  • Price:- $30

Priced at Now at $30, Verified Solution

Have any Question?


Related Questions in Basic Finance

Questions -q1 circuit city stores cc recently paid a 16

Questions - Q1: Circuit City Stores (CC) recently paid a $.16 dividend. The dividend is expected to grow at a 23 percent rate. At the current stock price of $7.96, what is the return shareholders are expecting? Q2:Helm I ...

Lets say there are 10000 lawyers in the usa and 500 of them

Let's say there are 10,000 lawyers in the USA and 500 of them are Oreo cookie lovers. These 500 lawyers consume a total of 500 Oreo cookies in a given time period out of 2,000 cookies sold. What is the BDI for Oreo cooki ...

Question -1 go to treasurydirect website and find the

Question - 1. Go to TreasuryDirect website and find the competitive auction results for the 9 year 11 month Treasury Notes that were auctioned on 9/12/2017 and identify the price plus accrued interest that successful bid ...

Whipple corp just issued 320000 bonds with a coupon rate of

Whipple Corp. just issued 320,000 bonds with a coupon rate of 6.26 percent paid semiannually that mature in 25 years. The bonds have a YTM of 6.70 percent and have a par value of $2,000. How much money was raised from th ...

Average inventory is 415435 and cost of goods sold is

Average inventory is $415,435 and cost of goods sold is $1,410,000. On average, how long did a unit of inventory sit on the shelf before it was sold?

Question discuss how efficient the us financial markets are

Question: Discuss how efficient the U.S. financial markets are in pricing financial securities. (Consider such questions as, "Are security prices reliable?", "What factors promote or reduce pricing efficiency?", and "How ...

Consider the following two mutually exclusive

Consider the following two mutually exclusive projects: Project / Year 0 1 2 3 4 Cost of Capital A -100 40 40 40 40 15% B -73 30 30 30 30 15% Which of the following is closest to the incremental IRR?

You take out a 25-year 210000 mortgage loan with an apr of

You take out a 25-year $210,000 mortgage loan with an APR of 12% and monthly payments. In 16 years you decide to sell your house and pay off the mortgage. What is the principal balance on the loan?

Assume that you contribute 300 per month to a retirement

Assume that you contribute $300 per month to a retirement plan for 25 years. Then you are able to increase the contribution to $500 per month for 20 years. Given a 9 percent interest rate, what is the value of your retir ...

Magenta corporation wants to raise 508 million in a

Magenta corporation wants to raise 50.8 million in a seasoned equity offering, net of all fees. Magenta stock currently sells for $14 per share. The underwriters will require a spread of $.50 per share, and indicate that ...

  • 4,153,160 Questions Asked
  • 13,132 Experts
  • 2,558,936 Questions Answered

Ask Experts for help!!

Looking for Assignment Help?

Start excelling in your Courses, Get help with Assignment

Write us your full requirement for evaluation and you will receive response within 20 minutes turnaround time.

Ask Now Help with Problems, Get a Best Answer

Why might a bank avoid the use of interest rate swaps even

Why might a bank avoid the use of interest rate swaps, even when the institution is exposed to significant interest rate

Describe the difference between zero coupon bonds and

Describe the difference between zero coupon bonds and coupon bonds. Under what conditions will a coupon bond sell at a p

Compute the present value of an annuity of 880 per year

Compute the present value of an annuity of $ 880 per year for 16 years, given a discount rate of 6 percent per annum. As

Compute the present value of an 1150 payment made in ten

Compute the present value of an $1,150 payment made in ten years when the discount rate is 12 percent. (Do not round int

Compute the present value of an annuity of 699 per year

Compute the present value of an annuity of $ 699 per year for 19 years, given a discount rate of 6 percent per annum. As