I need to call a DLL written in IVF V11.x from MATLAB. I dont know how go about solving this problem I was able to solve the problem using the MEX method but I am interested knowing how to call a Fortran compiled Dll in MatLab. For now all I need to is add two numbers and return the output.
real*4 function addnums(val1,val2)
!dec$ attributes dllexport,alias : "addnums" :: addnums
How do I generate the addnum.h file from the above code? I dont know c at all.
I found an example of MatLab can I adapt for windows os?
loadlibrary endecdll.dll endecdll.h alias lib
else % lunix
loadlibrary libendecdll.so endecdll.h alias lib % \\-> for linux
%libfunctions lib libfunctions lib \\-full
any help would be appreciated