| Simulink® | ![]() |
Math Operations
The Trigonometric Function block performs numerous common trigonometric functions.
You can select one of these functions from the Function list: sin, cos, tan, asin, acos, atan, atan2, sinh, cosh, tanh, asinh, acosh, and atanh. The block output is the result of the operation of the function on one or more inputs.
The name of the function appears on the block. If you select the atan2 function, the block displays two inputs. The first input is the y-axis or complex part of the function argument. The second input is the x-axis or real part of the function argument. (See Changing the Orientation of a Block in Simulink User's Guide for a description of the port order for various block orientations.)
Use the Trigonometric Function block instead of the Fcn block when you want dimensionalized output, because the Fcn block can produce only scalar output.
The Trigonometric Function block accepts and outputs real or complex signals of type double.

The trigonometric function.
Type of signal (complex or real) to output.
Specify the time interval between samples. To inherit the sample time, set this parameter to -1. See Specifying Sample Time in Simulink User's Guide for more information.
Direct Feedthrough | Yes |
Sample Time | Inherited from driving block |
Scalar Expansion | Yes, of the input when the function requires two inputs |
Dimensionalized | Yes |
Multidimensionalized | Yes |
Zero Crossing | No |
![]() | Triggered Subsystem | Unary Minus | ![]() |
| © 1984-2008- The MathWorks, Inc. - Site Help - Patents - Trademarks - Privacy Policy - Preventing Piracy - RSS |