Question: CREATE MATLAB SCRIPT PLS ASAP WILL RATE A system's step response is PICTURE LOOK CAREFULLY STEPS ARE BELOW FOR MAT LAB Part 1 : Step

CREATE MATLAB SCRIPT PLS ASAP WILL RATE A system's step response is PICTURE LOOK CAREFULLY STEPS ARE BELOW FOR MAT LAB 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 saved in variable Ys.
1e) Find the system transfer function . 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 . The Laplace transform of should be saved in variable X2.
The Laplace transformed output is Y2.
because .
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 y2 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. HINTS ARE IN GREEN PLS HELP
 CREATE MATLAB SCRIPT PLS ASAP WILL RATE A system's step response

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!