File: _loglog.sci

package info (click to toggle)
scilab-plotlib 0.41-2
  • links: PTS, VCS
  • area: main
  • in suites: squeeze
  • size: 3,196 kB
  • sloc: xml: 3,308; makefile: 15
file content (22 lines) | stat: -rw-r--r-- 359 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
function hdl=_loglog(varargin)

[lhs,rhs]=argn(0);

if ~rhs
   w=logspace(-2,2,512);
   s=%i*w;
   g=[];
   leg=[];
   for alpha=logspace(-2,1,5);
     g=[g;(1)./(s.^2+alpha*s+1)];
     leg=[leg;sprintf('alpha=%4.2f',alpha)];  
   end  
   hdl=_loglog(w,abs(g));
//   legend(leg)
   return
end

hdl=_mainPlot('loglog',varargin);

// end of loglog
endfunction