struct/mtimes.m

From Spinach Documentation Wiki
Revision as of 18:42, 6 June 2026 by Kuprov (talk | contribs) (Update function See also links and function index membership)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

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, struct/plus.m, Appendix_H:_Matlab_object_overloads

Version 2.9, authors: Ilya Kuprov, Luke Edwards