0xF2
0xF2

Reputation: 310

Interfacing Matlab to a network socket

I need to import data from a network socket straight into a Matlab environment for the Scientists on my team to process.

Can I use Java to implement the TCP protocol parsing from within Matlab? The idea is that if the application needs to outgrow Matlab, I would already have the network protocol parsing sorted out.

Upvotes: 1

Views: 63

Answers (1)

Marek
Marek

Reputation: 1727

you can call java classes and their methods directly from Matlab functions or command window

function sock = opensocket()
  sock = java.net.Socket(..)
  ....

Upvotes: 1

Related Questions