why I get "complex number" for the common calculation?
Ältere Kommentare anzeigen
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?
Akzeptierte Antwort
Weitere Antworten (1)
Naty Shemer
am 8 Feb. 2017
1 Stimme
Most probably (rt1./rft1) is negative and the log output of a negative number is imaginary...
Kategorien
Mehr zu Structural Mechanics finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!