Using MATLAB desktop application with MPS

3 views (last 30 days)
Orkhan
Orkhan on 4 Nov 2013
Commented: Friedrich on 5 Nov 2013
Hi there!
I am very new to MatLab set of tools and thus wanted to ask a question, related to Matlab desktop application and Matlab Production Server (MPS).
We want to achieve the following
1. Developer writes the code in Matlab desktop application and then compiles the code he wrote with Matlab Compiler and uploads it to MPS.
2. Other employees/developers can access this MPS applications from their Matlab desktop applications can run the MPS application to get results in the form of data, table, other visual representation.
Other reason of such scenario implementation is centralizing access to the databases, which have the data required for calculations of the applicaton, residing on MPS. We do not want to provide all Matlab users with direct connection to the databases.
In a few words, can Matlab application residing on MPS be used from Matlab desktop application? Has anyone came across such scenario and what are methods of doing this?

Answers (2)

Friedrich
Friedrich on 5 Nov 2013
Hi,
yes that is possible. You can directly call the MPS from MATLAB however that is a bit tricky. The easiest way would be creating a JAVA or .NET component which interacts with the MPS. Later you use that JAVA or .NET component back in MATLAB (see javaaddpath or NET.addAssembly commands).

Orkhan
Orkhan on 5 Nov 2013
Hi, Friedrich!
Thank you for your answer.
So, if I understood correctly, there is no way of native out-of-the-box collaboration between MPS and Matlab desktop application?
By term "native collaboration" I mean that you can use application residing on MPS and get the same experience as if you are running the application (code) on desktop application.
  1 Comment
Friedrich
Friedrich on 5 Nov 2013
You can get the same behavior but you would need adjust the MATLAB side a bit. You can move all calculations to the MPS and run it there and call those functions through a JAVA or .NET interface from MATLAB (basically two lines of MATLAB code if you make the methods static). However displaying the results in a figure needs to be done on the MATLAB side. The MPS cannot display a figure on the endusers machine.

Sign in to comment.

Tags

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!