~ubuntu-branches/ubuntu/hoary/scilab/hoary

« back to all changes in this revision

Viewing changes to man/tdcs/portrait.cat

  • Committer: Bazaar Package Importer
  • Author(s): Torsten Werner
  • Date: 2005-01-09 22:58:21 UTC
  • mfrom: (1.1.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20050109225821-473xr8vhgugxxx5j
Tags: 3.0-12
changed configure.in to build scilab's own malloc.o, closes: #255869

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
portrait          Scilab Group          Scilab Function            portrait
2
 
NAME
3
 
   portrait - 2 dimensional phase portrait.
4
 
  
5
 
CALLING SEQUENCE
6
 
 []=portrait(f,[odem,xdim,npts,pinit])
7
 
PARAMETERS
8
 
 f    : a Scilab external which gives the field of the dynamical system.
9
 
      Hence  it can be a macro name which computes the field at time t and
10
 
      point x [y]=f(t,x,[u]) or a list list(f1,u1) where f1 is a macro of
11
 
      type [y]=f1(t,x,u) or a character string. The macro can be used to
12
 
      simulate a continuous or discrete system and in case  of discrete
13
 
      system the second parameter must be set to 'discrete'
14
 
      
15
 
 .I rest
16
 
       : The other parameters are optional. If omitted they will be asked
17
 
      interactively
18
 
      
19
 
     odem : gives the integration method to use. The value "default" can
20
 
          be used,  otherwise see ode for a complete set of possibilities
21
 
          
22
 
     npts :  a vector of size (2,10) [number-of-points,step] gives the
23
 
          step for integration  and the number of requested points. The
24
 
          solution will be calculated and drawn  for
25
 
          time=0:step:(step*[number-of-points])
26
 
          
27
 
     xdim : [xmin,xmax,ymin,ymax,zmin,zmax] the boundaries of the graphic
28
 
          frame.
29
 
          
30
 
     pinit
31
 
               : initial values for integration. A set of initial points can be
32
 
          given in a matrix
33
 
          
34
 
               pinit = [x0(1), x1(1),...., xn(1)
35
 
                        x0(2), x1(2),...., xn(2)
36
 
                        x0(3), x1(3),...., xn(3)].
37
 
DESCRIPTION
38
 
   Interactive integration and display of a 2 dimensional phase portrait of
39
 
  a dynamical system  dx/dt=f(t,x,[u]) (where u is an optional parameter )
40
 
  
41
 
EXAMPLE
42
 
 a=rand(2,2)
43
 
 deff('[ydot]=l_s(t,y)','ydot=a*y')
44
 
 portrait(l_s)
45
 
SEE ALSO
46
 
   ode 
47