Search code examples
matlabcomplex-numberspolar-coordinates

Matlab make magnitude and angle into complex number


I have a variable that is holding the magnitude of a complex number and a seperate variable that is holdingthe angle of the complex number. Is there a way I can add the two together to form a polar complex number? or even a way I can make them a rectangular complex number?


Solution

  • The appropriate function to convert a complex number in polar coordinates to Cartesian coordinates would be pol2cart.