Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Answer all parts in MATLAB code. Laplace transform and transfer function A system's step response is y ( t ) = [ 1 - e

Answer all parts in MATLAB code.
Laplace transform and transfer function
A system's step response is y(t)=[1-e-4t-0.2cos(4t)]u(t).
Part 1: Step response and transfer function
1a) Use the symbolic math toolbox to express the step response and assign to variable y.
1b) Plot the step response. The plot command cannot be used since y is a symbolic variable, but fplot can plot a function or expression.
1c) Use the symbolic laplace function to find the Laplace transform of y(t) and assign the result to variable Y.
1d) Use the symbolic simplifyFraction function to merge the partial fractions into a single Y(s)=-s3+16s2+3205s(s2+16)(s+4) saved in variable Ys.
1e) Find the system transfer function H(s)=Y(s)x(s)=Y(s)1s=ss(s). Assign the result to variable H.
Part 2: Finding the system's response to a cosine input, using the transfer function
2a) Find the system's response to the input xz(t)=2cos(3t)u(t). The Laplace transform of x2(t) should be saved in variable x2.
The Laplace transformed output is Y2.
Y2(s)=x2(s)H(s) because H(s)=Y(s)x(s)=Y2(s)x2(s).
2b) Find the output in time domain using the ilaplace function, saved as y2.
2c) Plot the output y2 using fplot
2d) What is the maximum value of y2? Save the value to the variable y2Max.
Note: the max () function cannot be used on 22 directly, without converting the symbolic y2 to remove the variable t. But
double (max(subs(y2,t,T)))
does the conversion, subs () substitutes the numbers in vector T for the symbolic t and evaluates y2 to a vector of symbolic expressions. Then max () finds the symbolic max value, and double() evaluates the expression to a number. T can be 0 to 10 seconds with a time step of 0.05 seconds.
2e) What is the period of y2? The period can be found either by calculation or by inspecting the plot. Call the value y2Period.
image text in transcribed

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database And Expert Systems Applications 33rd International Conference Dexa 2022 Vienna Austria August 22 24 2022 Proceedings Part 1 Lncs 13426

Authors: Christine Strauss ,Alfredo Cuzzocrea ,Gabriele Kotsis ,A Min Tjoa ,Ismail Khalil

1st Edition

3031124227, 978-3031124228

More Books

Students also viewed these Databases questions

Question

Question Can employees make contributions to a profit sharing plan?

Answered: 1 week ago