File: eval3d.cat

package info (click to toggle)
scilab 2.6-4
  • links: PTS
  • area: non-free
  • in suites: woody
  • size: 54,632 kB
  • ctags: 40,267
  • sloc: ansic: 267,851; fortran: 166,549; sh: 10,005; makefile: 4,119; tcl: 1,070; cpp: 233; csh: 143; asm: 135; perl: 130; java: 39
file content (34 lines) | stat: -rw-r--r-- 827 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
eval3d            Scilab Group            Scilab Function            eval3d
NAME
   eval3d - values of a function on a grid
  
CALLING SEQUENCE
 [z]=eval3d(fun,x,[y])
PARAMETERS
 fun             : function accepting vectors as arguments.
                 
 x,y             : 2 vectors of size (1,n1) and (1,n2). (default value for
                 y : y=x).
                 
 z               : matrix of size (n1,n2).
                 
DESCRIPTION
   This function returns a matrix z(n1,n2). z(i,j)=fun(x(i),y(j)).  If the
  function fun doesn't accept arguments of type vector use the primitive
  feval.
  
EXAMPLE
   x=-5:5;y=x;
   deff('[z]=f(x,y)',['z= x.*y']);
   z=eval3d(f,x,y);
   plot3d(x,y,z);
 // 
   deff('[z]=f(x,y)',['z= x*y']);
   z=feval(x,y,f);
   plot3d(x,y,z);
SEE ALSO
   feval
  
AUTHOR
   Steer S.