Unary Minus
R2026bNegate input
Libraries:
Simulink /
Math Operations
HDL Coder /
HDL Floating Point Operations
HDL Coder /
Math Operations
Description
The Unary Minus block negates the input.
Examples
Ports
Input
Output
Parameters
Block Characteristics
Programmatic Use: Add Block
To add the block programmatically, use the add_block function with one of these library block paths as the source.
"simulink/Math Operations/Unary Minus"
"hdlsllib/HDL Floating Point Operations/Unary Minus"
"hdlsllib/Math Operations/Unary Minus"
Example: add_block("simulink/Math Operations/Unary Minus","myModel/myBlock",MakeNameUnique="on")
For information about programmatic access to individual block parameters, see the Programmatic Use section of parameter descriptions on this page.
