1.

Which command is used to find the argument of a complex number?(a) atan2()(b) args()(c) abs()(d) cannot be determinedThis question was addressed to me during an interview for a job.The query is from Complex Arithmetic in portion Beyond the Basics of MATLAB

Answer»

Correct choice is (a) atan2()

Explanation: The argument of a complex number is only the ANGLE which satisfies the cartesian equations USED to represent the REAL and imaginary part of the complex number. Thus atan2() is the in-built function to find the angle or the argument, in MATLAB. ABS()is used to find the modulus of the complex number. args() is not a valid function in MATLAB.



Discussion

No Comment Found

Related InterviewSolutions