MATLAB: Complex number determination complex numbersMATLAB How can I check if a number is imaginary? I want to set an if function, that if a variable is an aimginary number then something will happen. Best Answer z - your numberout = imag(z) ~= 0;if out = true, then z - complex numberORout = isreal(z)if out = false, then z - complex number Related SolutionsMATLAB: Frequency determination c = histc(A(:),unique(A)) MATLAB: Real and imaginary complex I(FFT) real()imag() Related QuestionDont want the number if its a part of a complex numberNatural number determinationHow can i plot whit the command plot a complex number with an imaginary part which is null? Can you make me an example of the code with this numberComplex plots bugEqually spaced array of complex numbers
Best Answer