atan2
R2026bCompute four-quadrant arctangent
Libraries:
Motor Control Blockset /
Math Transforms
Motor Control Blockset HDL Support /
Controls /
Math Transforms
Description
The atan2 block performs the four-quadrant arctangent on two real numbers.
Equations
This equation describes how the block computes the four-quadrant arctangent
(θ).
where:
Ports
Input
Output
Parameters
Programmatic Use: Add Block
To add the block programmatically, use the add_block function with one of these library block paths as the source.
"mcblib/Math Transforms/atan2"
"mcbhdllib/Controls/Math Transforms/atan2"
Example: add_block("mcblib/Math Transforms/atan2","myModel/myBlock",MakeNameUnique="on")
Extended Capabilities
Version History
Introduced in R2020a
