Please enable JavaScript to view this site.

Knowledge Base

Navigation: Scripting Language > Operators

+

We've made some changes. Use 'Ctrl-F5' to clear your browser cache.
Scroll Prev Top Next More

Performs an addition operation.

 

Supported Product: FDTD, MODE, DEVICE, INTERCONNECT

 

Syntax

Description

y = x + z;

Add x and z.

y = string1 + string2;

Concatenate strings together.

 

Examples

This example shows the usage of the "+" operator.

x=1:3;

y=2:4;

?z=x+y;

result: 

3  

5  

7  

 

?"file_"+"name_"+num2str(1);

file_name_1

 

See Also

Operators, *, /, +, -, ^, num2str, ?

Copyright Lumerical Inc. | Privacy | Site Map