Continuous Function
Purpose
Apply an arithmetic expression to a continuous signal.
Library
Signals & Systems
Description
The Continuous Function block applies an arithmetic expression specified in C
language syntax to its input. The input may be a scalar or vectorized continuous
signal, the output is always a scalar continuous signal. The expression may consist of
one or more of the following components:
- u -- the input of the block. If the input is vectorized, u(i) or u[i]
represents the ith element of the vector. To access the first element, enter
u(1), u[1], or u alone.
- Brackets
- Numeric constants
- Arithmetic operators (+ - * / ^)
- Mathematical functions -- abs, acos, asin, atan, atan2, cos, cosh, exp,
log, log10, pow, sgn, sin, sinh, sqrt, tan, and tanh.
- MATLAB workspace variables
Parameters and Dialog Box
-
Expression
- The expression applied to the input signal, in C language syntax.
-
Input width
- The width of the input signal. The default is 2.