arg(Z) is the function returns argument of the complex number Z. but it is showing error while executing arg(1+i) as" Undefined function 'arg' for input arguments of type 'double' ". Can anyone help me?.do u need to convert double to complex?. put u

310 views (last 30 days)
arg(1+i)
Undefined function 'arg' for input arguments of type 'double'.

Answers (1)

Udit Gupta
Udit Gupta on 29 May 2014
No such function as arg. Use angle(1+i)

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!