You can't.
It's up to the Mathworks to decide which functions to include.
You could always ask them nicely.
I don't know which version of Matlab you are using but maybe they have included it in newer releases. You'd have to check.
Otherwise you'll have to write it yourself.
1 Comment
Adam (view profile)
Direct link to this comment
https://la.mathworks.com/matlabcentral/answers/355946-function-not-supported-for-code-generation#comment_483456
Sign in to comment.