Difference between revisions of "Struct/mtimes.m"

From Spinach Documentation Wiki
Jump to: navigation, search
(Normalise sequential blank lines)
m (Rename Arguments section heading to Parameters)
Line 6: Line 6:
 
     str_out=mtimes(M,str_in)
 
     str_out=mtimes(M,str_in)
  
−
==Arguments==
+
==Parameters==
  
 
           M - any numeric object (scalar, matrix, etc.)
 
           M - any numeric object (scalar, matrix, etc.)

Revision as of 18:52, 5 June 2026

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

Syntax

    str_out=mtimes(M,str_in)

Parameters

          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