I have to run a matlab file through a C#(XNA game) interface. My matlab file is in turn using a dll library as it is fetching real time data from a hardware device. The matlab file does some filtering and then outputs an integer. Can I use .NET assembly method mentioned here for my matlab file?? Any suggestions on which method is best for this file?