Re: appearance of rlocus

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

Re: appearance of rlocus

Rik-4
On 01/29/2018 09:00 AM, [hidden email] wrote:
Subject:
Re: Help with rlocus appearance of initial location of poles and zeros
From:
Beginner1 [hidden email]
Date:
01/29/2018 02:51 AM
To:
[hidden email]
List-Post:
[hidden email]
Content-Transfer-Encoding:
quoted-printable
Precedence:
list
MIME-Version:
1.0
References:
[hidden email] [hidden email]
In-Reply-To:
[hidden email]
Message-ID:
[hidden email]
Content-Type:
text/plain; charset=UTF-8
Message:
1

Hi Doug,

Thank you for your answer. The markersize for the origin of poles in root
locus is a good one since the "X" symbol is perfectly seen. However, the
location of zeros is not that observable. Still they are very small when I
execute this code:

%ki=1;

kp=1.5;

w=314.159;


num=([kp ki kp*w.^2]);

den=([1 0 w.^2]);

sis=tf(num,den);

[RLDATA, ki] = rlocus (sis, 0.1, 0, 500);

%plot(rlocus(sis),"*","markersize",1)

rlocus(sis)


nr=roots(num);

dr=roots(den);

hold on 

plot(nr,"co","markersize",15)

plot(dr,"rx","markersize",15)


hold off


<http://octave.1599824.n4.nabble.com/file/t372684/Captura.jpg>  

I tried to increase the markersize but I didn´t observe any improvement. 

Best regards,

Marta
Marta,

This is more of a topic for the help list than the maintainer's list.  Perhaps you could move the conversation with Doug over to that list. Also, there must be some misunderstanding about what code you are running.  The sample above doesn't even pass the interpreter without errors.  The variable 'ki' is commented out at the beginning of the code so when the line

num=([kp ki kp*w.^2]);

is executed 'ki' is undefined and Octave just stops for me.

I just uncommented that first line and I get a very different result, but the zeros are clearly visible.

--Rik

rlocus plot


-----------------------------------------
Join us March 12-15 at CERN near Geneva
Switzerland for OctConf 2018.  More info:
https://wiki.octave.org/OctConf_2018
-----------------------------------------