how do i write 20logbase10 in matlab
조회 수: 27 (최근 30일)
이전 댓글 표시
log function in matlab
댓글 수: 0
채택된 답변
Star Strider
2014년 7월 8일
You just did — almost.
x = 0.5;
dB = 20*log10(x);
produces:
dB =
-6.0206e+000
댓글 수: 8
Star Strider
2014년 7월 8일
My pleasure!
You should have gotten the same result in your script as with the Command Window if you entered the same commands, unless you somehow implicitly converted a1 to double before you issued your Command Window call to log10. That’s the only way I can explain it.
No questions are stupid questions. No worries.
추가 답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Startup and Shutdown에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!