blob: ae71ca2e4c94d083822a1896b8a696fbdd8dc4a1 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
|
//Example 5.1
//Root locus of a Motor Position Control.
xdel(winsid())//close all graphics Windows
clear;
clc;
//------------------------------------------------------------------
//System transfer function and its root locus
s=poly(0,'s');
Ls=1/(s*(s+1));
//Title, labels and grid to the figure
exec .\fig_settings.sci; //custom script for setting figure properties
evans(Ls)
title(['Root locus for', '$L(s)=1/[s(s+1)]$'],'fontsize',3)
zoom_rect([-2 -1.5 2 1.5])
sgrid([0.5],1,5)
xset("font",1,1.5)
xstring(-1.2,1.1,'$\theta=sin^{-1} \xi$",0,0)
h=legend('');
h.visible = "off"
//------------------------------------------------------------------
|