Difference between revisions of "Struct/mtimes.m"

From Spinach Documentation Wiki
Jump to: navigation, search
(Created page with "{{DISPLAYTITLE:struct/mtimes.m}} Multiplies all entries of a structure by a user-specified matrix. ==Syntax== str_out=mtimes(M,str_in) ==Description== Nested structure...")
 
Line 1: Line 1:
−
{{DISPLAYTITLE:struct/mtimes.m}}
+
{{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.
  
Line 22: Line 22:
 
[[ttclass/mtimes.m]], [[polyadic/mtimes.m]]
 
[[ttclass/mtimes.m]], [[polyadic/mtimes.m]]
  
 +
[[Appendix_H:_Matlab_object_overloads|Matlab object overloads]]
  
−
''Version 2.1, authors: [[Ilya Kuprov]], [[Luke Edwards]]''
+
 
 +
''Version 2.9, authors: [[Ilya Kuprov]], [[Luke Edwards]]''

Revision as of 16:33, 6 May 2024

_NOTOC__

Multiplies all entries of a structure by a user-specified matrix.

Syntax

    str_out=mtimes(M,str_in)

Description

Nested structures are processed recursively.

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