MATLAB: Value of J in DFT

dftfft

Hi,
I am going through a post for DFT code in matlab so that I can convert it to JAVA. while going through I found below link. http://www.mathworks.com/matlabcentral/answers/67283-need-fft-code-for-matlab-not-built-in
Might be this is done long back. But I see Sum=Sum+x(jj)*exp(-2*pi*j*(jj-1)*(k-1)/nfft);
In this after pi, there is "j" what is the value of J here and how can I determine that.
Thanks in advance for your support!!

Best Answer

j (along with i) is the imaginary unit. In the Command Window, type
>> j
ans =
0.0000 + 1.0000i