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: Operators
See also: + * .* / ^ %

Function: -
Description: - is a operator for subtraction of arrays.

Usage: z = y - x
Input:
x n1 x n2 x ... x np array
y m1 x m2 x ... x mp array
Output:
z max(n1,m1) x max(n2,m2) x ... x max(np,mp) array

Note:

Example:

#(3,4) - #(1,2)
(#(3,4)~#(1,2)) .- #(2,3)
Result:

Contents of _tmp
[1,]     2 
[2,]     2 
Contents of _tmp
[1,]     1    -1 
[2,]     1    -1 

Group: Operators
See also: + * .* / ^ %

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, 17.8.2000