How to use three built-in functions

Assignment Help Finance Basics
Reference no: EM13921718

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

Reference no: EM13921718

Questions Cloud

The interest on some municipal bonds is tax free : The interest on some municipal bonds is tax free, in contrast to the interest on corporate bonds. If the current annual interest rates on otherwise similar (i.e., maturity, credit risk, liquidity) municipal and corporate bonds are 1.48% and 1.80%, re..
Fargo memorial hospital has annual net patient service : Fargo Memorial Hospital has annual net patient service revenues of $14,400,000. It has two major third-party payers, plus some of its patients are self-payers. The hospital's patient account manager estimates that 10 percent of the hospital's paying ..
Variety of performance data for individuals and teams : Predicting Winning Percentage for the NFL The National Football League (NFL) records a variety of performance data for individuals and teams (NFL website). Some of the year-end performance data for the 2005 season appear in the file named NFLStats.
How identity of self is developed in middle childhood : Compare and contrast the populations with the use of meaningful examples for each stage of development and social and personality development of the infant and the psychosocial, social, and moral development of the preschool child.
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).Using the syms function
The initial working capital requirement : You purchased land 3 years ago for $40000 and believe its market value is now $75000. You are considering building a hotel on this land instead of selling it. To build the hotel, it will initially cost you $165000, an expense that you plan to depreci..
Why have prisoners historically had very few rights : Recognition of prisoner rights has only developed in recent decades. Why have prisoners, historically, had very few rights? What were the main arguments within your selected articles
Compare random selection and random assignment : Compare and contrast random selection and random assignment. Be sure to include a discussion of when you would want to do one or the other and the possible consequences of failing to do random selection or random assignment in particular situation..
Production budget : production and sales data of Shingle Co. for March of the current year, prepare (a) a sales budget and (b) a production budget.

Reviews

Write a Review

Finance Basics Questions & Answers

  Financial reporting and analysis

Finance is about Gunns Ltd, a company in dealing with forestry products in Australia. The company has also been listed in Australian Stock Exchange. As many companies producing forestry products, even Gunns Ltd is facing various problems. Due to the ..

  A report on financial accounting

This report is specific for a core understanding for Financial Accounting and its relevant factors.

  Describe the types of financial ratios

Describe the types of financial ratios and other financial performance measures that are used during venture's successful life cycle.

  Differences between sole proprietorship and corporation

Briefly describe the major differences between a sole proprietorship and a corporation

  Prepare a cash budget statement

Calculate the expected value of the apartment in 20 years' time. What is the mortgage loan repayment at the beginning of each month

  What are the implied interest rates

What are the implied interest rates in Europe and the U.S.?

  State pricing theory and no-arbitrage pricing theory

State pricing theory and no-arbitrage pricing theory

  Small business administration

Identify the likely stage for each venture and describe the type of financing each venture is likely to be seeking and identify potential sources for that financing.

  Effect of financial leverage

The Effect of Financial Leverage and working capital management

  Evaluate the basis for the payment to the lender

Evaluate the basis for the payment to the lender and basis for the payment to the company-counterparty.

  Importance of opps, ipps, mpfs and dmepos

Research and discuss the differences and importance of : OPPS, IPPS, MPFS and DMEPOS.

  Time value of money

Time Value of Money project

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