How can I call Matlab functions using Erlang?
===

I would like to call some Matlab functions using Erlang. 

I have two separate network models (one comms/control, one energy)

Ideally I would like an Erlang process to send a message which causes some Matlab code to run. After the Matlab code has finished it must notify Erlang.

What is the simplest way of doing this? 

I am running Windows 7 (Matlab is Windows only). Matlab appears to require use of Microsoft Component Object Models which do not seem to be commonly used with Erlang - hence my question...

Thanks,