Difference between revisions of "Struct/mtimes.m"

From Spinach Documentation Wiki
Jump to: navigation, search
Line 1: Line 1:
 
{{DISPLAYTITLE:struct/mtimes.m}} __NOTOC__
 
{{DISPLAYTITLE:struct/mtimes.m}} __NOTOC__
−
Multiplies all entries of a structure by a user-specified matrix.
+
Multiplies all entries of a structure by a user-specified matrix. Nested structures are processed recursively.
  
 
==Syntax==
 
==Syntax==
  
 
     str_out=mtimes(M,str_in)
 
     str_out=mtimes(M,str_in)
−
 
−
==Description==
 
−
Nested structures are processed recursively.
 
  
 
==Arguments==
 
==Arguments==

Revision as of 16:35, 6 May 2024

Multiplies all entries of a structure by a user-specified matrix. Nested structures are processed recursively.

Syntax

    str_out=mtimes(M,str_in)

Arguments

          M - any numeric object (scalar, matrix, etc.)

     str_in - a structure with numeric subfields

Outputs

    str_out - the resulting structure

See also

ttclass/mtimes.m, polyadic/mtimes.m

Matlab object overloads


Version 2.9, authors: Ilya Kuprov, Luke Edwards