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?
This post is really helpful. But still there are some hard code that is not satisfactory. The command
eval(['mcc -N -d ' dnetdir ' -W ''dotnet:dotnet,'
In this command, the parameter after the -W, which is 'dotnet:dotnet', is comprised of both a constant and a variable. The first one should always be 'dotnet', while the second one should be identical with the name of the dll, which is exactly the case in this example. When I change the dll name to some more meaningful name in my project, it reports the error... The work around is to just change the second 'dotnet' into whatever your dll name is. Hope this helps for some people. LOL
Thanks David, it is a great tutorial,thank you so much. I like to know which solution is faster? I have a function file in matlab and I created .Net assembly of it and used it in C# but it worked very slow there.
Comment only