MATLAB Mex Socket Wrapper Library

前端 未结 1 1762
爱一瞬间的悲伤
爱一瞬间的悲伤 2020-12-21 13:45

Have anybody written a POSIX socket wrapping library for MATLAB using Mex?

I basically want to open, write and read. Both sync and asynchronous alternatives would be

相关标签:
1条回答
  • 2020-12-21 14:28

    If you want to work with sockets, you have two options:

    1) use Java capabilities from inside MATLAB (see this answer here on SO for a quick example):

    • TCP/IP Socket Communications in MATLAB
    • TCP/IP Socket Communications in MATLAB using Java Classes

    2) use C MEX-wrappers:

    • msocket
    • TCP/UDP/IP Toolbox

    I also think that the Instrument Control Toolbox includes support for TCP UDP communication.

    0 讨论(0)
提交回复
热议问题