a single line of code that will take complex variables x and y and define a variable z as the phase of the product of x and y.
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
I am not able to find the answer for this as I am new to Matlab.
0 Kommentare
Antworten (2)
KSSV
am 28 Jun. 2022
x = rand+1i*rand ;
y = rand+1i*rand ;
p = x*y ;
iwant = atan(imag(p)/real(p))
0 Kommentare
Walter Roberson
am 28 Jun. 2022
Bearbeitet: KSSV
am 28 Jun. 2022
but does the angle need to be in degrees or radians? And what range?
0 Kommentare
Siehe auch
Kategorien
Mehr zu Logical finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!