File: typeof.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 (60 lines) | stat: -rw-r--r-- 1,077 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
48
49
50
51
52
53
54
55
56
57
58
59
60

typeof(G)                      Scilab Function                      typeof(G)
NAME
  typeof -  object type

CALLING SEQUENCE
  [t]=typeof(object)

PARAMETERS

  object    : Scilab object

  t         : string

DESCRIPTION
  t=typeof(object) returns one of the following strings:

  "constant"
       if object is a real or complex constant matrix

  "polynomial"
       if object is a polynomial matrix

  "function"
       if object is a function

  "string"
       if object is a matrix made of character strings

  "boolean"
       if object is a boolean matrix

  "list"
       if object is a list

  "rational"
       if object is a rational matrix (transfer matrix)

  "state-space"
       if object is a state-space model (see syslin)

  "sparse"
       if object is a (real) sparse matrix.

  "boolean sparse"
       if object is a boolean sparse matrix.

EXAMPLE
  typeof(1)
  typeof(poly(0,'x'))
  typeof(1/poly(0,'x'))
  typeof(%t)
  w=sprand(100,100,0.001);
  typeof(w)
  typeof(w==w)
  deff('y=f(x)','y=2*x');
  typeof(f)

SEE ALSO
  type, strings,  syslin, poly