I have a large simulation suite written in Matlab, but due to concerns about better interfacing with other internal projects (as well execution speed) I'm thinking about moving some functionality to .NET and calling such objects from within Matlab. What is the overhead associated with calling .NET objects from within Matlab?
Here's a good discussion on Matlab OO that doesn't talk about .NET
Edit: Brief study
I ran a quick test on my own from within Matlab of simple access and assignment operations within different objects including formal Matlab objects (R2011b), Java and .NET calling each 1,000,000 times. The method calls refer to internal looping, the property/field calls refer to accessing the public field from Matlab and looping in Matlab. The last results puzzle me as the overhead for .NET is much higher than Java but the actual run-time is about half. What is going on?
Access(s) Assign(s) Type of object/call --- MATLAB --- 0.003361 0.004268 'myObj.field' 0.003403 0.004263 'myStruct.field' 0.003376 0.003392 'myVar' 0.152629 0.303579 'myHandleObj.field' 25.79159 - 'TestConstant.const' 0.003384 - 'myTestConstant.const' (instance) 0.006794 0.008689 'TestObj.methods' 0.157509 0.303357 'TestHandleObj.methods' --- NON-MATLAB --- 10.70006 16.42527 'JavaObj fields' 0.005063 0.005441 'JavaObj methods' 43.49988 43.96159 'NetObj fields' 0.002194 0.002306 'NetObj methods'