Keywords - Function groups - @ A B C D E F G H I J K L M N O P Q R S T U V W X Y Z

Group: Information and Control
See also: endp

Function: proc
Description: defines a procedure


Usage: proc (y) = pname(x)
Input:
pname name of the procedure
Output:
y output vector
x input vector

Note:

Example:



proc(y)=tran(x)

  y=x'

endp



v=1|1|1

p=tran(v)

p

Result:



The procedure tran is now defined with one input and one output parameter.  After calling this procedure, you get

following result:

Contents of p

[1,]        1        1        1 

Example:



proc()=myproc()

  "BODY OF THE PROCEDURE"

endp



myproc()         

Result:



The procedure is now defined, without any input or output parameter, after calling the procedure,

using the command myproc(), you get the following output:

Contents of _tmp

[1,] "BODY OF THE PROCEDURE"


Group: Information and Control
See also: endp

Keywords - Function groups - @ A B C D E F G H I J K L M N O P Q R S T U V W X Y Z

(C) MD*TECH Method and Data Technologies, 21.9.2000