File: evstr.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 (42 lines) | stat: -rw-r--r-- 1,150 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

evstr(1)                       Scilab Function                       evstr(1)
NAME
  evstr - evaluation of expressions

CALLING SEQUENCE
  H=evstr(Z)
  [H,ierr]=evstr(Z)

PARAMETERS

  Z     : matrix of character strings M or list(M,Subexp)

        M         : matrix of character strings

        Subexp    : vector of character strings

  H     : matrix

  ierr  : integer, error indicator

DESCRIPTION
  returns the evaluation of the matrix of character strings. Each element of
  the M matrix must be a character string defining a scilab expression.

  If evaluation of M expression leads to an error H=evstr(M) produces an
  error which is handled as usual. [H,ierr]=evstr(M) produces an error mes-
  sage and return the error number in ierr.

  If Z is a list, Subexp is a  character strings vector which defines
  sub_expressions evaluated before evaluation of M.  These sub_expressions
  must be referred as  %(k) in M (k is the sub-expression index in Subexp).

  evstr('a=1') is not valid (use execstr ).
EXAMPLES
  a=1; b=2; Z=['a','b'] ; evstr(Z)

  a=1; b=2; Z =list(['%(1)','%(1)-%(2)'],['a+1','b+1']);
  evstr(Z)

SEE ALSO
  execstr