Scilab Reference Manual |
---|
minus — (-) substraction operator, sign changes
X-Y -Y
X | : scalar or vector or matrix of numbers, polynomials or rationals. It may also be a syslin list |
Y | : scalar or vector or matrix of numbers, polynomials or rationals. It may also be a syslin list |
Substraction
For numeric operands substraction as its usual meaning. If one of the operands is a matrix and the other one a scalar the the operation is performed element-wise. if Y==[] X is returned; if X==[] -Y is returned.
Substraction may also be defined for other data types through "soft-coded" operations.
[1,2]-1 []-2 %s-2 1/%s-2 "cat"+"enate"
<< mini | min >> |