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 |
proc(y)=tran(x) y=x' endp v=1|1|1 p=tran(v) p
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
proc()=myproc() "BODY OF THE PROCEDURE" endp myproc()
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 |