Scilab Home page | Wiki | Bug tracker | Forge | Mailing list archives | ATOMS | File exchange
Please login or create an account
Change language to: Français - Português - 日本語

Please note that the recommended version of Scilab is 6.0.1. This page might be outdated.
See the recommended documentation of this function

Scilab help >> Scilab > Scilab keywords > minus

minus

(-) substraction operator, sign changes

Calling Sequence

X-Y
-Y

Arguments

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

Description

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.

Examples

[1,2]-1
[]-2

%s-2
1/%s-2
"cat"+"enate"

See Also

  • addf — symbolic addition
  • mtlb_mode — switch Matlab like operations
Scilab Enterprises
Copyright (c) 2011-2017 (Scilab Enterprises)
Copyright (c) 1989-2012 (INRIA)
Copyright (c) 1989-2007 (ENPC)
with contributors
Last updated:
Thu May 12 11:44:06 CEST 2011