How can I pass data from mobile app to MATLAB?

4 次查看(过去 30 天)
I'm developing mobile application. I want to send data from app to MATLAB for computing. After that, MATLAB will send result back to app. anyone know how can I do like that. I'm really thankful for your recommendations.

回答(1 个)

Walter Roberson
Walter Roberson 2018-9-2
You could use the appropriate Simulink support package; https://www.mathworks.com/help/supportpkg/android/ref/tcpipsend.html if you are looking to use MATLAB to generate the code that will run as the mobile app.
See also https://www.mathworks.com/hardware-support/android-sensor.html if your data is Android sensor data.
You can use tcpclient() from MATLAB itself if the mobile app is willing to act as a server.
If the mobile app is to act as a client and MATLAB is to act as a server, then you need either the Instrument Control Toolbox so you can use tcp() or udp() as a server, or you need the tcpipudp File Exchange contribution.

Community Treasure Hunt

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

Start Hunting!

Translated by