C++ code of matlab function ndgrid and interpn

Hi All,
I am working on an assignment in which I have to port a matlab code into C++. I am almost done with it but some functions i.e. ndgrid and interpn matlab functions, I am not able to port in C++. Please help if anyone can.
I have read what they functions do in matlab and I am not able to port them to C++. So, I am asking for help if possible.
use the Coder from Matlab. This allows you to convert any Matlab code to C/C++. It is not free though.
The links given above does not help in porting to C++ and that tool is expensive that I can' buy. So, Please help if anyone can.
Topic archived. No new replies allowed.