How to change the step size of rlocus

6 views (last 30 days)
go_stone
go_stone on 30 Oct 2021
Commented: go_stone on 31 Oct 2021
Hi,everyone.I plot a locus with the function "rlocus",but the step size is a little long than I want. I want to change the default step size but I don't know how to do it. I would be appreciated if anyone can give me some advice,thank you all!
Below is the code
clear;
sys1=zpk([-1,0.25],[-2,0.5+0.5j,0.5-0.5j],1);
rlocus(sys1);

Accepted Answer

Paul
Paul on 30 Oct 2021
Edited: Paul on 30 Oct 2021
rlocus() takes a second argument that defines the gains, k, where the points are plotted.
rlocus(sys,k)
Specify k to make the points on the locus as far apart or as close together as you want.
doc rlocus
  3 Comments
go_stone
go_stone on 31 Oct 2021
Thank you very much! It works!

Sign in to comment.

More Answers (0)

Products


Release

R2021b

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!