struct/mtimes.m

From Spinach Documentation Wiki
Revision as of 20:39, 31 December 2017 by Kuprov (talk | contribs) (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...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

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


Version 2.1, authors: Ilya Kuprov, Luke Edwards