Difference between revisions of "Struct/plus.m"

From Spinach Documentation Wiki
Jump to: navigation, search
Line 1: Line 1:
 
{{DISPLAYTITLE:struct/plus.m}} __NOTOC__
 
{{DISPLAYTITLE:struct/plus.m}} __NOTOC__
−
Plus operation for Matlab structures.
+
Adds corresponding fields of two structures. Nested structures are processed recursively.
  
 
==Syntax==
 
==Syntax==
  
 
     str3=plus(str1,str2)
 
     str3=plus(str1,str2)
−
 
−
==Description==
 
−
Adds corresponding fields of two structures. Nested structures are processed recursively.
 
  
 
==Arguments==
 
==Arguments==

Revision as of 16:35, 6 May 2024

Adds corresponding fields of two structures. Nested structures are processed recursively.

Syntax

    str3=plus(str1,str2)

Arguments

    str1, str2 - input structures, must have the same topology

Outputs

    str3       - output structure

See also

cell/plus.m, ttclass/plus.m, polyadic/plus.m

Matlab object overloads


Version 2.9, authors: Ilya Kuprov, Luke Edwards