rlocus and rlocfind for closed-loop
Show older comments

I have to create a matlab code on these plots and get a printout, but whatever code I tried, it always gave an error. I could not get a graphic. I need code to run this closed loop system
6 Comments
Numan Gürkan
on 27 Jan 2021
Edited: Numan Gürkan
on 27 Jan 2021
It looks like there is a fucntion tf() on the path that is shadowing the tf() function in the Control System Toolbox. What are the results of
>> which tf -all
The first line of the result should be:
C:\Program Files\MATLAB\R2019a\toolbox\control\ctrlmodels\@tf\tf.m % tf constructor
Once past this issue, then it looks like you're on the right path (except for the typo in den as compared to the diagram). But the transfer function for the Mechanical Ball needs to be defined too, and then look at the rlocus for the product of the transfer functions for the RL Coil Circuit and the Mechanical Ball.
Numan Gürkan
on 27 Jan 2021
Paul
on 28 Jan 2021
It looks like the Control System Toolbox is not installed, which will make this problem much more difficult than it would be otherwise. Recommend you check with whoever is respoosible for your installation and make sure you have all of the toolboxes you need installed and licensed. It should look like this if you have all toolboxes installed:
>> which tf -all
C:\Program Files\MATLAB\R2019a\toolbox\control\ctrlmodels\@tf\tf.m % tf constructor
C:\Program Files\MATLAB\R2019a\toolbox\control\ctrlmodels\@DynamicSystem\tf.m % DynamicSystem method
C:\Program Files\MATLAB\R2019a\toolbox\ident\ident\@idParametric\tf.m % idParametric method
C:\Program Files\MATLAB\R2019a\toolbox\mpc\mpc\@mpc\tf.m % mpc method
C:\Program Files\MATLAB\R2019a\toolbox\shared\controllib\engine\@StaticModel\tf.m % StaticModel method
For thiis problem you won't need the Model Predictive Toolbox, but you should have the Control System Toolbox.
If you had the Control System Toolbox you would define the transfer function for the ball the same way you've tried to do it for the circuit using the numerator and denominator coefficients as shown in the block diagram.
Numan Gürkan
on 28 Jan 2021
Answers (0)
Categories
Find more on Classical Control Design in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
