converting matlab code to cloud service - matlab

I have written Matlab code( musclualr software package), frequently l have seen move application to the cloud service, and now l want to learn cloud computing, l start with my application, but l want to know the aims of converting matlab code to cloud service?

I know that this an old question. Since there could be anyone else looking for answers I will state it here.
I believe what you are trying to achieve is migrating your current matlab application to cloud service.
There are 2 ways that you can do this.
Using Matlab compiler - Matlab compiler lets you create DLL , jar depending on your language. Currently it supports .Net , Java , C/C++ , python etc.However there are limitations for this. As of you can't 100% guarantee that you will be able to rewrite youre entire codebase. and also matlab offers better solution for this scenario.(stated below)
Using Matlab production server - If you are looking to develop web application using your matlab code this is your ultimate solution I believe. matlab production server works like a REST service. you can host your matlab files(.m) inside the production server.
What happens here is matlab compiles your code using matlab compiler and deploy it in their cloud. afterwards you can consume this like a api through their sdk however.
https://in.mathworks.com/help/mps/qs/create-a-deployable-archive-for-matlab-production-server.html
I have attached the link here incase if anyone is interested.

Related

gRPC - Using code other than Java to create a Service Implementation

I'm a student. For my Distributed Systems project, I'm expected to create a gRPC project. I'm creating the project in Eclipse.
Two service implementation are to be coded in Java and the other is to be done in another coding language.
I've tried searching for help online but the results I'm getting are related to gRPC and how gRPC works, not about the coding or using other coding.
Ideally, I would like to use Python as the other language and to create it in Eclipse if possible. Does anyone have any information, documentation or examples I could look at, so I could can reference it?
I am able to see online searches for both Java and Python, but I'm not sure how to use both in one project.
Thank you.
So I got a lot of feedback for lecturers and classmates.
The server doesn't care what programming language is used.
So Java, Python, Node.js etc, could all be sent to the server.
A generalised simplistic idea of how I was able to understand is: Python converts its code to binary and sends it to the server. Same with Java and Node.js.
I don't know why, but I was digging myself deeper trying to figure out what code (i.e. the binary) that needed to be the communication between the server and code. I was trying to encapsulate Python into Java and vice versa.
Why did I think this? Your guess is as good as mine.

Neural Network Standalone application in MATLAB

How do I create a pre-trained standalone application in MATLAB?
I used the workspace to run the code. I will like to create a standalone application so as to share with others without MATLAB to test the neural network.
Thanks
By stand-alone application, I am guessing that you want to create a GUI (Graphical User Interface) that people can use to test images on your network. If this is the case, you can either use the GUIDE or App Designer frameworks that MATLAB offers.
Note, however, if you plan on using MATLAB to develop this UI, the user will need MATLAB Runtime installed because you are coding in MATLAB. Just as if you created a program in python, the user would need python in order to run the program.

MATLAB on the web

Is it possible to install a MATLAB exe file along with its MCR on a web server and have some front end html code interact with it in terms of inputs and outputs? What web hosting server would be ideal for this? Will php make interacting with the web server easier?
The MATLAB code has multiple inputs that I want to have the user input into a form and each of those text fields corresponds to the a specific input. Once the user presses submit I want to run the MATLAB program on the server with the given inputs, and then display the array of outputs. Is that possible? Sorry, I am pretty savy with MATLAB but not with its Compilers, Coders, etc and not with web development either.
Have a look here:
Options for Deploying MATLAB Applications via the Web
Deploying MATLAB Code as a Web Application
For exactly this use case I created the project NuCompRes. There you also find a legal notice with respect to the MATLAB license.
For this scenario you have two options:
1-Compile your matlab code (no GUI) using MATLAB Builder JA (Java) or MATLAB Builder NE (dot NET). In that way you can create a jar or dll file with your Matlab code that can be invoked inside a web application created in java or aspx. This solution is fine if you have few users over the web. For this approach you need to have/buy the Matlab builder JA/NE in order to compile your matlab code properly.
2-The second approach, is to use MATLAB Production Server. This is a more complex (and more expensive) solution. Basically MATLAB Production Server is a software which must be intalled in a (web) server, which can handle multiple request of MATLAB functions executions at the same time and is able to comunicate java or dot net application with MATLAB code. This software comes in blocks of 24*n users licenses (24 user, 48 users, and so on) and can manage MATLAB functions/libraries created in different MatLab versions.
In both cases you must create in MatLab your core code (the heavy and mathematical part of your computation) and invoke it inside the web application (at this time The Mathworks only supports Java and dot net). The GUI part is not expected to be created in MATLAB.

Embedding Processing applications in PowerPoint / Other Solutions

I wish to use the application known as Processing to create interactive graphs and figures to use in a presentation for the Arizona JSHS competition. I have used the widely popular LiveWeb application to be able to embed java into the power-point. But when I do the same thing with Java applications made with Processing it gives an error.
"Error: Unexpected identifier or string. http://localhost/applet/index.html"
I have tested it with locally hosted Java applets and Processing applets, both work run normally. But only the Java applet (which is very similar to the processing applet) works in LiveWeb.
Does anyone have suggestions to get around this? Do you think I could import processing library's into Eclipse and work from there?
One potential solution would be processing.js. It is a javascript version of processing that may fit your needs.

What is Use of MATLAB or Matlab Tools in website development?

Can I use MATLAB for website development?
I want to embed image processing into C#.net web application.
If any other tool used for website development.
Thanks
Abhishek
One way would be to create CGI files that could be called by a web server. Have a look here and here.
EDIT:
I was thinking about this more and I think that you could also use matlab for web applications through python. Specifically, mlabwrap would give very nice interface to matlab. mlabwrap is very good, i personally use it to access matlab from python. Thus you could build web app using python's pylons or django and access matlab through mlabwrap.
You could have a look at Matlab Builder NE, a Mathworks product for creating .Net components that might be perfect to integrate with your .Net web app:
http://www.mathworks.com/products/netbuilder/
No personal experience with this, but it sounds like something that would suit your needs perfectly.