Reputation: 795
This is what I have to achieve. I have to pass the parameter from an android program to a matlab function that is stored on another server and get back the result in android. I am thoroughly confused as to how to achieve this.
Any help would be appreciated.
Thanks
Upvotes: 1
Views: 821
Reputation: 1
I think MATLAB Builder™ JA can help you with that but i think that converted code need a matlab runtime compiler [MCR] and that will be available i guess soon for android
i was also trying to do some thing like your idea lately but i dropped it and started coding in JAVA an now i am comfortable as i was with matlab:
this link i guess might help you with your problem
http://www.mathworks.se/matlabcentral/newsreader/view_thread/295313
Upvotes: 0
Reputation: 4398
If the data you want to send/receive is not too tedious, the easiest solution is probably sockets. Java sockets will be able to connect to and transfer data to/from matlab sockets. This requires you to have a matlab program running constantly to await a connection.
If you want to e.g. send serialized objects around, then I would suggest writing java code on the server - I think it's not too hard to send serialized objects over a network with sockets. Your java code would then interface with Matlab locally.
I wrote some example sockets code here: How to transfer pictures from android device to Matlab and vice-versa
Upvotes: 2