MATLAB Coder App does not support generating code for an entry-point function that is nested inside a package. I can think of the following workarounds:
- use the command-line interface ("codegen") -- cd to +mix folder, call codegen from there
- move amp2dbfs to outside of +mix
- Create a separate entry point function (e.g. "main.m") that calls mix.amp2dbfs and generate code for that entry-point function.