Math Function

 

The Math block performs the common mathematical function specified in the function list.

 

Dialog box

Figure 1  Math Function dialog box

 

Parameters

     Function: Select a function of the following types.

 

Function

Description

Mathematical Expression

Equivalent in MATLAB

exp

Exponential

exp

log

Natural logarithm

In

log

10^u

Array power of base 10

10.^u

Log10

Complex (base10) logorithm

log

log10

Magnitude^2

Complex modulus

(abs(u)).^2

square

Array power 2

u.^2

sqrt

Squre root

squrt

pow

Array power

power

reciprocal

Array reciprocal

1/

1./u

 

     Sample Time: Enter the time interval between samples.