Azzera filtri
Azzera filtri

Info

Questa domanda è chiusa. Riaprila per modificarla o per rispondere.

help with homework for cs101, topolar?

2 visualizzazioni (ultimi 30 giorni)
Ruqayyah tahir
Ruqayyah tahir il 6 Dic 2014
Chiuso: Oleg Komarov il 6 Dic 2014
Write a function topolar that accepts a complex number c, and returns two output arguments containing the magnitude mag and angle theta of the complex number. The output angle should be in degrees. The error message must be displayed when the number of input parameters is not equal to one. (a) Show the Matlab function. (b) Test the function by using: [a b]=topolar(3+i*4).

Risposte (1)

Star Strider
Star Strider il 6 Dic 2014
The magnitude and angle (degrees) are easy enough:
abs(c);
atan2d(imag(c),real(c))
respectively.

Questa domanda è chiusa.

Community Treasure Hunt

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

Start Hunting!

Translated by