matlab-IntelliJ-plugin icon indicating copy to clipboard operation
matlab-IntelliJ-plugin copied to clipboard

Imaginary unit `j` yields syntax error

Open HaHeho opened this issue 4 years ago • 0 comments

In Matlab it is viable to specify the imaginary unit by i or j according to varying conventions in different mathematical applications.

a = 1 + 2i;
b = 1 + 2j;

However, the second line yields a syntax error with '&', '&&', ''', '(', '*', '+', '++', '-', '--', '.'', '.*', '...', './', '.\', '.^', '/', ':', <, <=, '=', '==', '>', '>=', '\', '^', '|', '||' or '~=' expected, got 'j'

HaHeho avatar May 03 '21 15:05 HaHeho