Reference no: EM13764907
- 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
Write a program that simulates a simple calculator
: Write a program that simulates a simple calculator. It reads two integers and a character. If the character is a +, the sum is printed; if it is a -, the difference is printed; if it is a *, the product is printed; if it is a /, the quotient is pr..
|
Issues of critical analysis on appendicitis
: It must include: history, description,anatomy of the system involved effect,cause,sign and symptoms, diagnosis,complication,treatment and side effect of Appendicitis.
|
Implement a capital investment decision
: Often when deciding to implement a capital investment decision, funding through acquiring debt must be obtained. Recently the credit market has been tight to non-existent.
|
Memo to chief draper that addresses the chiefs concerns
: Based on the media-based research data matrix you created, select one of the research areas identified above and prepare a 5-6 page memo to Chief Draper that addresses the Chief's concerns
|
Laplace transform
: Find the Laplace transform of sin(2t). From the table of Laplace transforms, the Laplace transform of sin(2t) is
|
Review reading in qualitative inquiry and research design
: Review the reading in Qualitative Inquiry and Research Design: Choosing Among Five Approaches and Chapter 6 in Qualitative Research and Evaluation Methods for this week.
|
Calculate the present value of project
: Calculate the present value of each project at each of Alfred's potential costs of capital and indicate which project is acceptable at each. Calculate the payback period for each project. Does your recommendation to Alfred change?
|
Biotechnology applications related problem
: Evaluate current or future applications of biotechnology in the fields of medicine or agriculture.
|
Describing how to formulate and present the business case
: describing how to formulate and present the business case for technology investments.
|