i

The imaginary number i, such that i^2 = -1

Syntax

R = i returns a complex value.

R = i(n) returns an n by n matrix.

R = i(m, n) returns an m by n matrix.

R = i(d1, d2, ... dN) returns an N dimensional matrix.

R = i([d1, d2, ... dN]) returns an N dimensional matrix.

Inputs

m, n, d1, d2, ..., dN
The dimensions of the desired matrix.
Any valid scalar | vector | matrix
Type: integer
Dimension: scalar | vector

Outputs

R
The returned matrix of i values.

Examples

No input example:

R = i
R = 0 + 1i

One input example:

R = i(3)
R = [Matrix] 3 x 3
0 + 1i  0 + 1i  0 + 1i
0 + 1i  0 + 1i  0 + 1i
0 + 1i  0 + 1i  0 + 1i

Two input example:

R = i(3,2)
R = [Matrix] 3 x 2
0 + 1i  0 + 1i
0 + 1i  0 + 1i
0 + 1i  0 + 1i