0
root locus code from scilab book

s=%s;
syms k
H=syslin('c',(k*(s+1)*(s+2))/(s*(s+3)*(s+4)));
evans(H,5)
I found this code from a scilab control systems online book and tried executing it in the cloud.  No good!  I see that in this example there is a feedback gain, k, but searching for syms in scilab search, I can find no             reference to it. I ran evans before using a transfer function without the k and it works ok (right out of the evans example code definition).  Is this code right out of one of your books wrong?  The k does look like a good   idea,   What is the meaning of "syms k" and what is wrong with this example?


Scilab 28-02-18, 11:24 p.m. maxcy

Answers:

0

There is nothing wrong with this example except that it uses 'syms' to declare a symbolic variable. 'Syms' command is no longer supported in the latest scilab versions. syms k will simply declare a symbolic variable k, just like you declare s=%s. You may simply replace k with its correct value and the example will work. You can attach the example url next time to help us help you better. Just a note, if I am not wrong, the k here is "forward" gain and not "feedback" gain.

01-03-18, 9:16 p.m. rupakrokade


0

When doing a root locus, one starts with the form 1 + k(Q(s)/P(s)) and the roots are plotted for k values from 0 to inf thus forming a root locus graph. Which brings up 2 questions: in the above code k would have to be scanned over 0 to inf, so putting in a constant seems contrary to forming a root locus graph, and as evans with k a constant would seem not to show a root locus, but it does, somehow the evans function inserts a k parameter to make a 1 + k(Q(s)/P(s)) function for evans to analyze the above function. Any comments welcome.

03-03-18, 1:59 a.m. maxcy


Log-in to answer to this question.
{"cc_re__cc_re__cc_by_sa_4_0": ["dp\"/><hr/><div class=\"pull-right\"><input class=\"btn btn-sm btn-success\" type=\"submit\" value=\"Okay\"/><a class=\"btn btn-sm btn-default\" data-dismiss=\"modal\" href=\"#\">Close</a></div></form><div class=\"clearfix\"></div></div></div></div></div></div></div></div><div class=\"container\" id=\"footer-wrapper\"><div class=\"col-lg-12 col-md-12 col-sm-12\" id=\"footer-inner\"><a class=\"navbar-brand\" href=\"https://fossee.in/\" target=\"_blank\"><img id=\"logo\" src=\"/static/website/images/logo.png\"/></a><div class=\"cc\"><a class=\"cc-logo\" href=\"http://creativecommons.org/licenses/by-sa/4.0/\" rel=\"license\" target=\"_blank\"><img alt=\"CC logo\" src=\"/static/website/images/cc-logo-88x31.png\"/></a> This forum by FOSSEE at <a href=\"http://www.iitb.ac.in\" target=\"_blank\">IIT Bombay</a> is licensed under a <a href=\"http://creativecommons.org/licenses/by-sa/4.0/\" rel=\"license\" target=\"_blank\">Creative Commons Attribution-ShareAlike 4.0 International License</a></div></div></div></div><script src=\"/static/website/js/bootstrap.min.js\"></script><script src=\"/static/website/slick/slick.min.js\"></script><script src=\"/static/web", "\"footer-wrapper\"><div class=\"col-lg-12 col-md-12 col-sm-12\" id=\"footer-inner\"><a class=\"navbar-brand\" href=\"https://fossee.in/\" target=\"_blank\"><img id=\"logo\" src=\"/static/website/images/logo.png\"/></a><div class=\"cc\"><a class=\"cc-logo\" href=\"http://creativecommons.org/licenses/by-sa/4.0/\" rel=\"license\" target=\"_blank\"><img alt=\"CC logo\" src=\"/static/website/images/cc-logo-88x31.png\"/></a> This forum by FOSSEE at <a href=\"http://www.iitb.ac.in\" target=\"_blank\">IIT Bombay</a> is licensed under a <a href=\"http://creativecommons.org/licenses/by-sa/4.0/\" rel=\"license\" target=\"_blank\">Creative Commons Attribution-ShareAlike 4.0 International License</a></div></div></div></div><script src=\"/static/website/js/bootstrap.min.js\"></script><script src=\"/static/website/slick/slick.min.js\"></script><script src=\"/static/website/js/nice-bar.js\"></script><script src=\"/static/website/js/nicEdit.js\" type=\"text/javascript\"></script><script type=\"text/javascript\">\n    $(\".user_co\").each(function() {\n        var hue = 'rgb(' + (Math.floor((256-199)*Math.random()) + 200) + ',' + (Math.floor(("]}