File: genfac3d.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 (37 lines) | stat: -rw-r--r-- 1,027 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

genfac3d(2)                    Scilab Function                    genfac3d(2)
NAME
  genfac3d - convert 3d datas to four sided facets

CALLING SEQUENCE
  [xx,yy,zz]=genfac3d(x,y,zmat [,mask])

PARAMETERS

  zmat           : a (mxn) matrix.

  x              :x axis coordinates vector ( size m )

  y              :y axis coordinates vector ( size n )

  mask           : boolean optional matrix with same size as zmat used to
                 select entries of zmat to be represented by facets.

  xx,yy,zz       : Three 4x(n-1xm-1)  matrices. xx(:,i),yy(:,i),zz(:,i) are
                 respectively the
                  x-axis,y-axis and z-axis coordinates of the ith facet

DESCRIPTION
  Converts 3d data ( two vectors x,y and a matrix z which code the  surface
  z(i,j)=f(x(i),y(j)) ) to a four sided facets representation.

EXAMPLE
  t = linspace(0,2*%pi,10);
  zmat=sin(t')*cos(t);
  plot3d(t,t,zmat)
  [xx,yy,zz]=genfac3d(t,t,zmat);
  plot3d(xx,yy,zz)
  plot3d([xx xx],[yy yy],[zz 4+zz])

SEE ALSO
  plot3d, eval3dp