Hello Lim,
After analyzing the code, It is clear that you are not able to generate ‘MEX’ because the ‘%#codegen’ directive is missing in the function definition at beginning. To generate the ‘MEX’ please add the ‘%#codegen’ directive as shown below at the starting of the Entry-Point function:
function [D,N] = fcn_PRM(node_PRM,PosMap)
end
Also, make sure that the same function is getting called in the ‘Define Input Type’ stage.
Kind Regards
~Pravin
Best Answer