Identity Matrix
R2026bGenerate matrix with ones on main diagonal and ground values elsewhere
Libraries:
Simulink /
Matrix Operations
Description
The Identity Matrix block outputs an identity matrix, similar to the
MATLAB®
eye function. The block generates a square or rectangular matrix with ones on
the main diagonal and zeros elsewhere.
Examples
Ports
Input
Output
Parameters
Block Characteristics
Data Types |
|
Direct Feedthrough |
|
Multidimensional Signals |
|
Variable-Size Signals |
|
Zero-Crossing Detection |
|
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/Matrix Operations/IdentityMatrix"
Example: add_block("simulink/Matrix Operations/IdentityMatrix","myModel/myBlock",MakeNameUnique="on")
