The function "log10" is supported for code generation in the latest version (R2020b) of MATLAB. You can find the list of supported functions in the below page :
i don't see you generating the Fix point matlab file ? For me - the problem is with coder app generating the fixpoint matlab script
Did you notice your C code still had double for nargin? You have to consider sign, WL and FL for your input and then feed to log10 . Another point for your notice - 20*log10 (x) is NOT fixed point-
Several compiler ask to log function as they won't include the log10 in math.h . For example of Linux based implementation.