imat_fn/plus


Purpose

Add ordinates (f1+f2).

Syntax

f1+f2
f+x
x+f

Description

The following addition operations are possible with imat_fn objects:

Examples

>> f=imat_fn(3,'ordinate',reshape(1:15,5,3))

f =
3x1 IMAT Function with the following attributes:
Record Name          FunctionType     OrdNumDataType   NumberElements
-------------------- ---------------- ---------------- ----------------
1_(1X+,1X+)          Time Response    Unknown          5
2_(1X+,1X+)          Time Response    Unknown          5
3_(1X+,1X+)          Time Response    Unknown          5

>> f.ordinate

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

>> g=f+f; g.ordinate

ans =
     2    12    22
     4    14    24
     6    16    26
     8    18    28
    10    20    30

>> g=g+g(1); g.ordinate

ans =
     4    14    24
     8    18    28
    12    22    32
    16    26    36
    20    30    40

>> g=g+1; g.ordinate

ans =
     5    15    25
     9    19    29
    13    23    33
    17    27    37
    21    31    41

>>

See Also

imat_fn/minus