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

« back to all changes in this revision

Viewing changes to man/graphics/eval3d.cat

  • Committer: Bazaar Package Importer
  • Author(s): Torsten Werner
  • Date: 2002-03-21 16:57:43 UTC
  • Revision ID: james.westby@ubuntu.com-20020321165743-e9mv12c1tb1plztg
Tags: upstream-2.6
ImportĀ upstreamĀ versionĀ 2.6

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
eval3d            Scilab Group            Scilab Function            eval3d
 
2
NAME
 
3
   eval3d - values of a function on a grid
 
4
  
 
5
CALLING SEQUENCE
 
6
 [z]=eval3d(fun,x,[y])
 
7
PARAMETERS
 
8
 fun             : function accepting vectors as arguments.
 
9
                 
 
10
 x,y             : 2 vectors of size (1,n1) and (1,n2). (default value for
 
11
                 y : y=x).
 
12
                 
 
13
 z               : matrix of size (n1,n2).
 
14
                 
 
15
DESCRIPTION
 
16
   This function returns a matrix z(n1,n2). z(i,j)=fun(x(i),y(j)).  If the
 
17
  function fun doesn't accept arguments of type vector use the primitive
 
18
  feval.
 
19
  
 
20
EXAMPLE
 
21
   x=-5:5;y=x;
 
22
   deff('[z]=f(x,y)',['z= x.*y']);
 
23
   z=eval3d(f,x,y);
 
24
   plot3d(x,y,z);
 
25
 // 
 
26
   deff('[z]=f(x,y)',['z= x*y']);
 
27
   z=feval(x,y,f);
 
28
   plot3d(x,y,z);
 
29
SEE ALSO
 
30
   feval
 
31
  
 
32
AUTHOR
 
33
   Steer S.   
 
34