why I get "complex number" for the common calculation?
이전 댓글 표시
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?
채택된 답변
추가 답변 (1개)
Naty Shemer
2017년 2월 8일
1 개 추천
Most probably (rt1./rft1) is negative and the log output of a negative number is imaginary...
카테고리
도움말 센터 및 File Exchange에서 Phased Array Design and Analysis에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!