M1.4. Complex Variables

Both i and j represent the imaginary number by default:

» i
ans =
        0 + 1.0000i
» sqrt(-3)
ans =
        0 + 1.7321i

Note that these variables (i and j) can be redefined (as the index in a for loop, for example).

Get Process Control: Modeling, Design, and Simulation now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.