How to use three built-in functions

Assignment Help Mathematics
Reference no: EM13921368

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

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

Reference no: EM13921368

Questions Cloud

Overall cost of debt is the weighted average implied : Filer Manufacturing has 8.8 million shares of common stock outstanding. The current share price is $58, and the book value per share is $3. Filer Manufacturing also has two bond issues outstanding. Suppose the company’s stock has a beta of 1.1. The r..
Using animals to make fur coats is unethical : Which of the following individuals was convicted of various computer crimes and was known for his ability to conduct successful social engineering attacks?
Find a recent article that discusses company culture : Find a recent article (within the last year) that discusses company culture. Summarize the article, and explain the main point you believe the article was trying to convey.
Discuss the pluses and minuses of microsofts policy relative : Its central staff has decision rights to ensure a standard presentation is presented in all editions. Discuss the pluses and minuses of Microsoft's policy relative to Encylopedia Britannica's.
How to use three built-in functions : Last week was a basic introduction to Matlab. This week you will learn how to use three built-in functions (laplace, ilaplace and dsolve).
Best estimate of the aftertax cost of debt : Shanken Corp. issued a 25-year, 8 percent semiannual bond 3 years ago. The bond currently sells for 93 percent of its face value. The company’s tax rate is 35 percent. What is your best estimate of the aftertax cost of debt?
Explanation of the types of behaviors you observed : Write a 2-page paper that includes an explanation of the types of behaviors you observed in the two clients profiled in the media program
What are the current total carrying costs : The Trektronics store begins each week with 460 phasers in stock. This stock is depleted each week and reordered. The carrying cost per phaser is $41 per year and the fixed order cost is $84. What are the current total carrying costs? What is the eco..
What would the total recruiting cost be for baldwin : Baldwin's turnover rate for this year is 6.32%. This rate is projected to remain the same next year and no further downsizing will occur from automating. What would the total recruiting cost be for Baldwin, assuming it spends the same amount extra..

Reviews

Write a Review

Mathematics Questions & Answers

  Find the length of the flagpole

A flagpole is tilted at an angle of seven degrees from he horizontal and towards the sun. It casts a shadow of 14 meters when the angle of elevation of the sun is 43 degrees. Find the length of the flagpole.

  Use x to represent the number of doctors selected

Among the N = 18 doctors in a healthcare group, A=7 of them are board certified. A team of n= 4 doctors is going to be selected at random to staff a new clinic. Use X to represent the number of doctors selected into the team who are board certifie..

  Te standard deviation of sample was 27 minutes using 005

the management of abc industries is considering a new method of assembling its golf cart.nbsp the present method

  A pair of earrings has a blue wedges that are all the same

a pair of earrings has a blue wedges that are all the same size. one earring has a 25 degree angle yellow wedge. the

  What is the ratio of the cardinal magnitude

A cardinal (Richmondena cardinalis) of mass 3.70 10 2 and a baseball of mass 0.150 have the same kinetic energy. What is the ratio of the cardinal's magnitude of momentum to the magnitude of the baseball's momentum?

  What are the dimensions of the rectangle with the maximum

A rectangle is constructed with its base on the x axis and two of its vertices on the parabola y=16-x^2. what are the dimensions of the rectangle with the maximum area?

  Make a new variable by computing the bmi difference

Make a new variable called BMIDIFF by computing the BMI difference for each twin pair.

  How much should be reported as cash in the balance sheet

Consider the : Cash in Bank - checking account of $13,500, Cash on hand of $500, Post-dated checks received totaling $3,500, and Certificates of deposit totaling $124,000. How much should be reported as cash in the balance sheet?

  Find the tax the owner will have to pay

Business and finance. In Bucks County, the property tax rate is $25.32 per $1000 of assessed value. If a house and property have a value of $128,000, find the tax the owner will have to pay.

  Series convergencea prove using the definition that the

series convergence.a prove using the definition that the following sequence convergerradicnn 1b using the definition

  Find a linear function

Find a Linear Function that F that expresses temperature Fahrenheit scale in terms of degrees Celsius C.

  What dimensions will give the larges printed area

A poster is to have an area of 240 in^2 with 1 in margins at the bottom and sides and a 2 in margin at the top. What dimensions will give the larges printed area?

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd