Answered step by step
Verified Expert Solution
Link Copied!

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

image text in transcribed

(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

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

MySQL Crash Course A Hands On Introduction To Database Development

Authors: Rick Silva

1st Edition

1718503008, 978-1718503007

More Books

Students also viewed these Databases questions

Question

Make efficient use of your practice time?

Answered: 1 week ago