Scilab Website | Contribute with GitLab | Mailing list archives | ATOMS toolboxes
Scilab Online Help
5.3.3 - English

Change language to:
Français - 日本語 - Português

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

Scilab help >> Scilab > Scilab keywords > plus

plus

(+) addition operator

Calling Sequence

X+Y
str1+str2

Arguments

X,Y

scalar or vector or matrix of numbers, polynomials or rationals. It may also be a syslin list

str1,str2

a character string, a vector or a matrix of character strings

Description

Addition.

For numeric operands addition as its usual meaning. If one of the operands is a matrix and the other one a scalar the scalar is added to each matrix entries. if one of the operands is an empty matrix the other operand is returned (this default behavior can be modified by the function mtlb_mode).

For character strings + means concatenation.

Addition may also be defined for other data types through "soft-coded" operations (see overloading).

Examples

[1,2]+1
[]+2
s=poly(0,"s");
s+2
1/s+2
"cat"+"enate"

See Also

  • addf — symbolic addition
  • mtlb_mode — switch Matlab like operations
  • overloading — display, functions and operators overloading capabilities
<< percent Scilab keywords power >>

Copyright (c) 2022-2023 (Dassault Systèmes)
Copyright (c) 2017-2022 (ESI Group)
Copyright (c) 2011-2017 (Scilab Enterprises)
Copyright (c) 1989-2012 (INRIA)
Copyright (c) 1989-2007 (ENPC)
with contributors
Last updated:
Wed Oct 05 12:09:25 CEST 2011