Answered step by step
Verified Expert Solution
Question
1 Approved Answer
(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 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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started