next up previous contents index
Next: 6.3.1.3.2 Example 2 Up: 6.3.1.3 Examples Previous: 6.3.1.3 Examples

   
6.3.1.3.1 Example 1

The Scilab function is a=calc(str). Its input is a string and its output is a scalar.

The corresponding Fortran subroutine is subroutine fcalc(str,a). Its arguments are a string str (used as input) and an integer a (used as output).

We reserve a fixed dimension of 10 for the string.

The description file is the following:

calc    str
str     string  10
a       scalar

fcalc   str     a
str     char
a       integer

out     a
***********************


next up previous contents index
Next: 6.3.1.3.2 Example 2 Up: 6.3.1.3 Examples Previous: 6.3.1.3 Examples
Scilab Group