[graphics] Demos: add a 'Technical plots' section
[scilab.git] / scilab / modules / graphics / demos / technical / phaseplot.dem.sce
1 // Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
2 // Copyright (C) 2019 - Samuel GOUGEON
3 //
4 // This file is released under the 3-clause BSD license. See COPYING-BSD.
5
6 function demo_phaseplot()
7     my_handle = scf(100001);
8     clf(my_handle,"reset");
9     demo_viewCode("phaseplot.dem.sce");
10     my_plot_desc = "phaseplot";
11     my_handle.figure_name = my_plot_desc;
12
13     // DEMO START
14     s = poly(0,'s')
15     h1 = syslin('c',(s^2+2*0.9*10*s+100)/(s^2+2*0.3*10.1*s+102.01))
16     h2 = syslin('c',(s^2+2*0.1*15.1*s+228.01)/(s^2+2*0.9*15*s+225))
17     phaseplot([h1;h2],0.01,100,..
18               ["$\frac{s^2+18 s+100}{s^2+6.06 s+102.1}$";
19                "$\frac{s^2+3.02 s+228.01}{s^2+27 s+225}$"])
20     title('Phaseplot')
21     // DEMO END
22 endfunction
23
24 demo_phaseplot();
25 clear demo_phaseplot;