Using MATLAB desktop application with MPS
4 views (last 30 days)
Show older comments
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?
0 Comments
Answers (2)
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).
0 Comments
Orkhan
on 5 Nov 2013
1 Comment
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.
See Also
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!