why I get "complex number" for the common calculation?
Mostra commenti meno recenti
RSTR=sum(wt.*log(rt1./rft1));
'wt', 'rt1' and 'rft1' are all real numbers and why 'RSTR' is complex numbers?
Z=log( bsxfun(@rdivide,(1+rt21),(1+rft21)) );
'rt21', and 'rft21' are both real numbers and why 'Z' is complex numbers?
Risposta accettata
Più risposte (1)
Naty Shemer
il 8 Feb 2017
1 voto
Most probably (rt1./rft1) is negative and the log output of a negative number is imaginary...
Categorie
Scopri di più su Phased Array Design and Analysis in Centro assistenza e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!