normrnd, normpdf, pdf not working for code generation
5 views (last 30 days)
I'm trying to use MATLAB Coder to compile a script with normrnd, normpdf and pdf functions. However, I keep getting errors saying these functions are not supported for code generation, even though according to the online documentation it is supported. Could someone tell me a workaround for this issue?
I want to avoid using coder.extrinsic to ensure the compiled code runs as fast as possible. Could it have something to do with the fact that I am using objects?
Mike Hosea on 3 Jul 2014
If you're using 2013a or earlier, they aren't supported. If you're using 2013b or later, they are supported. You'll need the obvious licenses, of course, but it sounds like you have them if you can call those functions from MATLAB and you can compile anything with MATLAB Coder. Could be an installation issue. Do you have a toolbox/stats/eml/ directory?
Also, I'm assuming we're talking about errors when compiling, because if the screener tool has it wrong then the problem would most likely be limited to the screener tool.