필터 지우기
필터 지우기

??? Function 'log10' is not defined for values of class 'embedded.fi'.

조회 수: 2 (최근 30일)
Shruthi Sampathkumar
Shruthi Sampathkumar 2016년 5월 11일
답변: mnescola 2019년 12월 28일
Hello all, Can anyone help me as to what alternative code can I use instead of log10 to calculate Gain of a signal in decibels? Here's my code sample...
var_s_cfb=sum(ip.^2)/(length(ip)) - (length(ip))*mean(ip)^2/(length(ip));
var_en_3_cfb=sum(en_3.^2)/(length(en_3)) - (length(en_3))*mean(en_3)^2/(length(en_3));
GPcfblms=(var_s_cfb)/(var_en_3_cfb);
GPcfblms_dB=20*log10(GPcfblms);
Thank you, Shruthi Sampathkumar.

답변 (1개)

mnescola
mnescola 2019년 12월 28일
I met the same error, would U tell me how do you solve it?

카테고리

Help CenterFile Exchange에서 Code Generation에 대해 자세히 알아보기

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by