Ask Question, Ask an Expert

+61-413 786 465

info@mywordsolution.com

Ask Statistics and Probability Expert

ECET 345

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

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.

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

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

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.
1.
2.
3.
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

Statistics and Probability, Statistics

  • Category:- Statistics and Probability
  • Reference No.:- M91600210
  • Price:- $40

Priced at Now at $40, Verified Solution

Have any Question?


Related Questions in Statistics and Probability

Rachel age 65 has begun establishing many different trusts

Rachel, age 65, has begun establishing many different trusts. Of the following beneficiaries listed in her trusts, who would be considered a skip person for purposes of the GSTT? I. Adam, age 25, her new husband II. Bart ...

On average the parts from a supplier have a mean of 975

On average, the parts from a supplier have a mean of 97.5 inches and a standard deviation of 12.2 inches. Find the probability that a randomly selected part from this supplier will have a value between 85.3 and 109.7 inc ...

Ganad and equity risk premiumsnbspmarianbspgonzalez ganados

Ganad and Equity Risk Premiums.  Maria? Gonzalez, Ganado's Chief Financial? Officer, estimates the? risk-free rate to be 3.70 %, the? company's credit risk premium is 4.00%, the domestic beta is estimated at 0.93?, the i ...

A researcher records the following body mass index bmi

A researcher records the following body mass index (BMI) scores for a group of participants: 29.1 1.3 (M SD). Participants who score between 26 and 30 on this scale are categorized as overweight. What proportion of parti ...

At a university the probability that an incoming freshman

At a university, the probability that an incoming freshman will graduate within four years is 0.553. Use the normal approximation to estimate, to the nearest thousandth, the probability that (a) at least 60 out of a grou ...

Show worksuppose you are thinking of purchasing the moore

Show Work Suppose you are thinking of purchasing the Moore Co.'s common stock today. If you expect Moore to pay $1.2, $1.26, $1.323, and $1.39 dividends at the end of year one, two, three, and four respectively and you b ...

Determine the sample size n needed to construct a 99

Determine the sample size n needed to construct a 99?% confidence interval to estimate the population mean when σ=24 and the margin of error equals 9.

Assume the random variable x is normally distributed with a

Assume the random variable x is normally distributed with a mean u=80 and a standard deviation o=4. Find the indicated probability. P(69 P(69 Round to four decimals places as needed.

Can a business have too much money in cash meaning cash on

Can a business have too much money in Cash, meaning cash on hand as well as in checking and savings accounts? What if a business had 100 million dollars in these cash accounts but only needed half of that for what Keynes ...

The usable lifetime of a particular electronic component is

The usable lifetime of a particular electronic component is known to follow an exponential distribution with a mean of 6.2 years. Let X = the usable lifetime of a randomly selected component. (a) The proportion of these ...

  • 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