Constructing and identity in QT format
The command eye constructs an identity represented in the QT format.
Contents
Syntax
- I = eye(inf, 'like', cqt)
- I = eye(n, 'like', cqt)
Example
We can use the command to build the identity for both finite and infinite matrices, as follows:
I = eye(inf, 'like', cqt);
I(1:4, 1:4)
ans = 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0 1