The use of Matlab Coder sometimes denies the use of some very common functions, if they are not compatible to C++. Relatively often there exist undocumented helper functions, which can be used as replacements.
Here is a comprehensive list of supported functions..
And following a collection of alte...