| Products & Services | Solutions | Academia | Support | User Community | Company |
| Download Product Updates | | | Get Pricing | | | Trial Software |
| Documentation → Simulink |
| Contents | Index |
| Learn more about 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, atanh, and sincos. The name of the function appears on the block. Each block output is the result of the function operating on one or more inputs.
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 How to Rotate a Block in the Simulink User's Guide for a description of the port order for various block orientations.)
If you select the sincos function, the block displays two outputs. The first output is the sine of the function argument, and the second output is the cosine of the function argument.
Use the Trigonometric Function block instead of the Fcn block when you want dimensionalized output, because the Fcn block can produce only scalar output.
Note If you use a compiler that does not support the asinh, acosh, and atanh functions, the Real-Time Workshop software issues a warning for the Trigonometric Function block and the generated code fails to link. For more information, see Simulink Built-In Blocks That Support Code Generation in the Real-Time Workshop documentation. |
The Trigonometric Function block accepts and outputs real or complex signals of type single or 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 How to Specify the Sample Time in the 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 | ![]() |

Learn more about Simulink through this collection of videos, articles, technical literature and the Getting Started with Simulink Guide.
| © 1984-2009- The MathWorks, Inc. - Site Help - Patents - Trademarks - Privacy Policy - Preventing Piracy - RSS |