j

Purpose

Imaginary unit.

Synopsis

j
x+yj
x+j*y

Description

You can use the character j in place of the character i as the imaginary unit.

As the basic complex unit sqrt(-1), j is used to enter complex numbers. Since j is a function, it can be overridden and used as a variable, if desired. Thus, you can still use j as an index in for loops, etc.

You can also use the character j without a multiplication sign as a suffix in forming a numerical constant.

Examples

Z = 2+3j
Z = x+j*y
Z = r*exp(j*theta)

See Also

conj, i, imag, real

(c) Copyright 1994 by The MathWorks, Inc.