Evaluate the given series of equations using matlab

Assignment Help Simulation in MATLAB
Reference no: EM131094828

Instructor: William Mugge

Please type your responses to the sections below. The provided descriptions of each section, as well as this text, should be removed after your own writing is complete.

1. Objective

What is the purpose of the experiment?

2. Procedure

Write an explanation of the theory or procedure behind the exercise. Do not re-list the procedure as given in the laboratory manual or give a step-by-step account of the steps you took.

3. Results and Calculations

Give the experimental data in tabular or graphical form. Show samples of calculations. If applicable, include relevant MATLAB results such as graphs of output and command screen history. These can be attached as an appendix if needed.

4. Discussion

Discuss the results or your exercise and show how the objectives were met. Comment on how the results correlate with theoretical values. What are some causes of error in the results?

5. Conclusions

Briefly reiterate the key points of the above sections. Was the experiment considered a success? What (if anything) could have been done differently or better? What are some lessons learned?

Laboratory Exercise: Laplace and Inverse Laplace Functions in Matlab

Introduction

The programming package MATLAB is used to evaluate the Laplace Transform and Inverse Laplace Transform of several functions. Before entering equations, enter "syms s t" to define s and t as symbols.

Procedure

Evaluate the following three functions in the lab using MATLAB:

a) y(t)=4+3t+2e^(-3t)

b) f(t)=2e^(-4t)+sin6t

c) c(t)=5te^(-3(t-2))

Convert each of the three equations to frequency domain both by using the MAT lab command and by hand. These equations are determined in MATLAB using the laplace(F) command.

Next, evaluate the following frequency domain equations and convert them to time domain. This is the inverse operation and will use the ilaplace(F) MATLAB command.

a) Y(s)=2/s+6/(s+3)^2

b) F(s)=(s+2)/(s(s+1))

c) C(s)=(4s+6)/((s+1)(2s^2+12s+16))

Show all MATLAB Command Window results. With each window, label the problem with name, problem number and the result.

Laboratory Exercise: Differential Equations Solved in MATLAB

Introduction

The programming package MATLAB is used to evaluate the Laplace Transform and Inverse Laplace Transform as well as total solutions for differential equations. Before entering equations, enter "syms s t" to define s and t as symbols.

Procedure

Evaluate the following function in the lab using MATLAB:

2 (d^2 y)/(dx^2 ) + 12dy/(dx )+10y=8;y(0)=0 and dy/(dx ) (0)=1

Evaluate the following series of equations using MATLAB:

(di_1)/(dt )+20i_1-10i_2=100u(t)

(di_2)/(dt )+20i_2-10i_1=0

Find equations for each variable. For #1 find the value of y(t). For #2 find the value of i1(t) and i2(t). (Initial conditions for i1(t) and i2(t) are zero)

Use the command dsolve(‘eq1', ‘eq2',...,'cond1','cond2',...,'v') where ‘eq1' represents the first differential equation in the series and ‘cond1' represents the first set of initial conditions in the series of equations and ‘v' represents the independent variable.

Show all MATLAB Command Window results. With each window, label the problem with name, problem number and the result.

The equations above would be entered:

syms s
dsolve(‘(2*D2y)+(12*Dy)+(10*y)=8','y(0)=0','Dy(0)=1')
[i1,i2]=dsolve('(Di1)+(20*i1)-(10*i2)=100','(Di2)+(20*i2)-(10*i1)=0','i1(0)=0','i2(0)=0')

Also, on the website is a tutorial titled Solving ODE in MATLAB.

1-a
>>syms t
y(t)=4+3*t+2*exp(-3*t)
laplace(y(t))
y(t) =
3*t + 2*exp(-3*t) + 4
ans =
2/(s + 3) + 4/s + 3/s^2

1-b
>>syms t
>>f(t)=2*exp(-4*t)+sin(6*t)
f(t) =
2*exp(-4*t) + sin(6*t)
>>laplace(f(t))
ans =
2/(s + 4) + 6/(s^2 + 36)
1-c
syms t
>>c(t)=5*t*exp(-3*(t-2))
c(t) =
5*t*exp(6 - 3*t)
>>laplace(c(t))
ans =
(5*exp(6))/(s + 3)^2

2-a

>>syms s
>> y(s)=2/s+6/(s+3)^2;
>>ilaplace(y(s))
ans =
6*t*exp(-3*t) + 2

2-b

>>syms s
>> f(s)=(s+2)/(s*(s+1))
f(s) =
(s + 2)/(s*(s + 1))
>>ilaplace(f(s))
ans =
2 - exp(-t)

2-c

>>syms s
>> c(s)=(4*s+6)/((s+1)*(2*s^2+12*s+16))
c(s) =
(4*s + 6)/((s + 1)*(2*s^2 + 12*s + 16))
>>ilaplace(c(s))
ans =
exp(-t)/3 + exp(-2*t)/2 - (5*exp(-4*t))/6

EX 3

1
>>syms x
>>dsolve('(2*D2y)+(12*Dy)+(10*y)=8','y(0)=0','Dy(0)=1')
ans =
4/5 - exp(-5*t)/20 - (3*exp(-t))/4

2
>>syms t
>> [i1,i2]=dsolve('(Di1)+(20*i1)-(10*i2)=100','(Di2)+(20*i2)-(10*i1)=0','i1(0)=0','i2(0)=0')
i1 =
exp(-30*t)*((5*exp(30*t))/3 + exp(20*t)*(5*exp(10*t) - 5) - 5/3)
i2 =
exp(-30*t)*(exp(20*t)*(5*exp(10*t) - 5) - (5*exp(30*t))/3 + 5/3)

Reference no: EM131094828

Questions Cloud

Different types of budgets : What are some of the different types of budgets? Describe in detail one type of budget covered in the text. Describe what the budget is used for and what information it provides a business.
Dilemma game nash equilibrium : Is the solution to the prisoner’s dilemma game a Nash equilibrium? Why?
Explain at least three hr trends and practices : Based on your research, explain at least three HR trends and practices that might help the organization analyze work, design jobs, and job flow. Explain and justify your answer.
Manufacturing overhead costs as product costs : What arguments can be advanced in favor of treating fixed manufacturing overhead costs as product costs? What arguments can be advanced in favor of treating fixed manufacturing overhead costs as period costs?
Evaluate the given series of equations using matlab : Evaluate the following series of equations using MATLAB. Convert each of the three equations to frequency domain both by using the MAT lab command and by hand. These equations are determined in MATLAB using the laplace(F) command.
Corporation manufactures small airplane propellers : 1. Leidenheimer Corporation manufactures small airplane propellers. Sales for April totaled $850,000. Information regarding resources for the month follows:
Aggregate demand–aggregate supply model : To illustrate inflation inertia in an aggregate demand–aggregate supply model, the short-run aggregate supply curve shifts upward because of increases in ______, and the aggregate demand curve shifts upward because of increases in ______.
What would be the effect on inflation? interest rate : If money supply increases by 5%, what will be the impact on price level if the output increases by 2% and the interest rate remains constant?
Oral component of presentation : Students will meet the required "oral" component of the presentation by posting a PowerPoint presentation including the following criteria:

Reviews

Write a Review

Simulation in MATLAB Questions & Answers

  Calculate the stress intensity factor

Use the three-parameter zone finite element method or the boundary collocation method to calculate the stress intensity factor K, at the crack tip for the plate

  Build a simulation using newtons laws of motion

Build a new and different simulation of your own using Newtons laws of motion and Show the code and describe how it works

  Write the specification of load mover

Write the specification of LOAD MOVER detailed of the whole design and precise for automatic control section and divide the design into various modules and Is the kernel required if yes which one?

  Design the automatic control section using statecharts

Aim of this project is to design an embedded system which can move loads from one place to another. The system can be operated manually, automatically and wirelessly.

  Need an expert who can model a drill in simulink

Need an expert who can model a drill in Simulink. Working model of a drill needing for an improvment to behave more realistically as a drill to drill through plastic block.

  Project is on load frequency control using fpid

Project is on load frequency control using FPID tuned using GA and PSO algorithm and the system is a two area system.

  Number of packets received with time

Let x be the number of packets received with time -

  Build a matlab based graphical user interface

Build a Matlab based graphical user interface (GUI) that operates in conjunction with a base Matlab/ Simulink simulation program. Any base simulation is considered acceptable.

  Build a matlab based graphical user interface

Build a Matlab based graphical user interface (GUI) that operates in conjunction with a base Matlab/ Simulink simulation program. Any base simulation is considered acceptable.

  Simulate the standardised sum of independent

Simulate the standardised sum of independent and identically distributed variates - Fit a linear regression model as in Q5, and plot your estimates for β0 and β1 as N increases, together with a line indicating their true values. Supply your code.

  Plot the original periodic square wave

Plot the original periodic square wave on the same graph. Comment on the difference between the original periodic square wave and its truncated Fourier series presentation.

  Use matlab to plot the function

Plot the original periodic square wave on the same graph. Comment on the difference between the original periodic square wave and its truncated Fourier series presentation.

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