\(\text{I}_\text{R}\)

You can use the \(\text{I}_\text{R}\) function to insert a real identity matrix.

You can use the \idreal backslash command to insert this function.

The following variants of this function are available:

  • \(\text{boolean matrix } \text{I}_\text{R} \left ( \text{<side>} \right )\)

  • \(\text{boolean matrix } \text{I}_\text{R} \left ( \text{<rows>}, \text{<columns>} \right )\)

The single parameter version of the \(\text{I}_\text{R}\) accepts an integer \(\text{<side>}\) parameter that indicates the number of rows and columns. This version will always create a square matrix.

The two parameter version of the \(\text{I}_\text{R}\) accepts integer \(\text{<rows>}\) and \(\text{<columns>}\) parameters that specify the dimension of the created matrix.

Figure 152 shows the basic use of the \(\text{I}_\text{R}\) function.

../_images/ir_example.png

Figure 152 Example Use Of The IR Function