Question

I'm hopping to run some signal processing algorithm in windows phone app. So I need to combine matlab m files with C# gui.

Was it helpful?

Solution

You have two options to integrate MATLAB code into a Windows phone app.

  1. Deploy your code to a web service on a remote server with MATLAB Builder NE, and have your C# app call that.
  2. Use MATLAB Coder to convert your algorithm to C, and integrate that C code directly into your C# app. You would need to make sure that your algorithm falls into the subset of the MATLAB language supported by MATLAB Coder, but if it is primarily a signal processing algorithm it is likely that it will.

I'm not familiar with a specific example that I can point you to of a Windows phone app, but I know that MathWorks have examples of how to apply the second option to generate C code that is integrated into an Objective C application on iPhone.

Ignore the possibility of deploying your code with MATLAB Compiler and integrating the result into your C# app. The executables/libraries created by MATLAB Compiler depend on MATLAB Compiler Runtime (MCR), which has a much larger footprint than is suitable for a mobile app.

OTHER TIPS

You can not run matlab code in windows phone. For windows phone you must write code in c# ( silverlight, xna) or native c++.
You wont have any runtime environment for your Matlab code in windows phone.


Hack: there are .net bindings for Matlab. You can try them.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top