imat_shp/mldivide


Purpose

Matrix divide shapes (A\s).

Syntax

t=A\s

Description

Matrix left division between an imat_shp object s and a numeric array A is performed repeatedly at all shape coefficients. This type of operation requires that all elements of s have the same node numbers and DOF, and that the row dimension of s match the row dimension of A. At each shape coefficient, a matrix or vector the same dimension as s is formed, and the matrix division is computed. The resulting matrix or vector is placed into the shape of the result, with the same nodes and DOF as s. The data attributes of the result are taken from s(1). In particular, the units exponents will be set assuming that A is a unitless quantity.

Note that A\s does not give an ordinate equal to A\(s.shape). In the first expression, A must have a row dimension equal to the row dimension of s. In the second expression, A must have a row dimension equal to the number of shape coefficients of s.

Examples

>> s=imat_shp(3,'shape',reshape(1:18,6,3));
>> s.frequency=(1:3)'

s =
3x1 IMAT Shape with the following attributes:
Row Frequency           Damping             NumberNodes
--- ------------------- ------------------- -------------------
1   1                   0.01                2
2   2                   0.01                2
3   3                   0.01                2

>> s.shape                   % s is 3x1 with 6 shape coefficients

ans =
     1     7    13
     2     8    14
     3     9    15
     4    10    16
     5    11    17
     6    12    18

>> A=(1:3)'                  % A is 3x1 (nrows = nrows of s)

A =
     1
     2
     3

>> t=A\s; t.shape            % t is 3x3 with 6 shape coefficients

ans =
    3.8571
    4.2857
    4.7143
    5.1429
    5.5714
    6.0000

>> t                         % Note all outputs have attributes of t(1)

t =
IMAT Shape with the following attributes:
Frequency           Damping             NumberNodes
------------------- ------------------- -------------------
1                   0.01                2

>>

See Also

imat_fn/mrdivide, imat_fn/mtimes