File: fchamp.cat

package info (click to toggle)
scilab 2.4-1
  • links: PTS
  • area: non-free
  • in suites: potato, slink
  • size: 55,196 kB
  • ctags: 38,019
  • sloc: ansic: 231,970; fortran: 148,976; tcl: 7,099; makefile: 4,585; sh: 2,978; csh: 154; cpp: 101; asm: 39; sed: 5
file content (47 lines) | stat: -rw-r--r-- 1,354 bytes parent folder | download
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
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47

fchamp(2)                      Scilab Function                      fchamp(2)
NAME
  fchamp - draw a 2d vector field

CALLING SEQUENCE
  fchamp(f,t,xr,yr,[arfact,brect,strf])

PARAMETERS

  f         : a function which describes the vector field.

            - It can be a function name f, where f is supposed to be a func-
              tion of type [y]=f(t,x,[u]) ( f returns a column vector of
              dimension 2, y, which gives the value of the vector field f at
              point x and time t.

            - It can also be an object of type list, list(f1,u1) where f1 is
              a function (f [y]=f1(t,x,u) ) and u1 gives the value of the
              parameter u.

  t         : The selected time.

  xr,yr     : two vectors of size (1,n1) (1,n2) which specifies the grid on
            which the vector field is to be computed.

  arfact,brect,strf
            : optional arguments, see champ.

DESCRIPTION
  the fchamp is used to draw a two dimensional vector field described by a a
  Scilab external.

  Enter the command champ() to see a demo.

EXAMPLE
   deff('[xdot] = derpol(t,x)',['xd1 = x(2)';
             "xd2 = -x(1) + (1 - x(1)**2)*x(2)";
             "xdot = [ xd1 ; xd2 ]"]);
   xf= -1:0.1:1;
   yf= -1:0.1:1;
   fchamp(derpol,0,xf,yf);
   xbasc();
   fchamp(derpol,0,xf,yf,1,[-2,-2,2,2],"011");

AUTHOR
  J.Ph.C.