Question: (2) Write your own Matlab function to compute and plot a root locus. Use this function to verify your hand sketches above (turn these plots

 (2) Write your own Matlab function to compute and plot a

(2) Write your own Matlab function to compute and plot a root locus. Use this function to verify your hand sketches above (turn these plots in as well using roughly the same real and imaginary limits). The function should have the following inputs and outputs: input: numerator and denominator coefficients of L(s) and the range of values for the varying parameter K output: set of closed-loop poles and a plot of them in the complex plane. This can be done in less than 10 ines of code (some useful built in functions you may use: roots (computes roots of a polynomial given its coefficients), real (returns the real part of a complex number), imag (returns the imaginary part of a complex number)). Compare the output of your code with the built in rlocus function in Matlab. (2) Write your own Matlab function to compute and plot a root locus. Use this function to verify your hand sketches above (turn these plots in as well using roughly the same real and imaginary limits). The function should have the following inputs and outputs: input: numerator and denominator coefficients of L(s) and the range of values for the varying parameter K output: set of closed-loop poles and a plot of them in the complex plane. This can be done in less than 10 ines of code (some useful built in functions you may use: roots (computes roots of a polynomial given its coefficients), real (returns the real part of a complex number), imag (returns the imaginary part of a complex number)). Compare the output of your code with the built in rlocus function in Matlab

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!