[graphics] Demos: add a 'Technical plots' section
[scilab.git] / scilab / modules / graphics / demos / technical / svplot.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_svplot()
7     my_handle = scf(100001);
8     clf(my_handle,"reset");
9     demo_viewCode("svplot.dem.sce");
10     my_plot_desc = "svplot";
11     my_handle.figure_name = my_plot_desc;
12
13     // DEMO START
14     x = logspace(-3,3);
15     y = svplot(ssrand(2,2,4),x);
16     clf()
17     plot2d("ln", x, 20*log(y')/log(10))
18     xgrid(12)
19     xtitle("Singular values plot","(rad/sec)", "dB");
20     // DEMO END
21 endfunction
22
23 demo_svplot();
24 clear demo_svplot;