TCP/IP Socket Communications in MATLAB

版本 1.0.0.0 (2.3 KB) 作者: Rodney Thomson
A simple example TCP/IP server and client
14.8K 次下载
更新时间 2008/8/19

查看许可证

Provides an example Server / Client written in MATLAB that utilises the ability to call Java inline to perform message communication using TCP/IP.

Importantly it does not require any pre-compiled DLLs or force you to compile some MEX c-files. Nor does it require any additional toolboxes Its all contained within the .m files.

To use the example:

- Start 2 instances of MATLAB
- in the first execute the following:
message = char(mod(1:1000, 255)+1);
server(message, 3000, 10)
- in the second execute the following:
data = client('localhost', 3000)

For more details see:
http://iheartmatlab.blogspot.com/2008/08/tcpip-socket-communications-in-matlab.html

引用格式

Rodney Thomson (2024). TCP/IP Socket Communications in MATLAB (https://www.mathworks.com/matlabcentral/fileexchange/21131-tcp-ip-socket-communications-in-matlab), MATLAB Central File Exchange. 检索时间: .

MATLAB 版本兼容性
创建方式 R14SP2
兼容任何版本
平台兼容性
Windows macOS Linux

Community Treasure Hunt

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

Start Hunting!
版本 已发布 发行说明
1.0.0.0