TCP/IP 通信
通过 TCP/IP 接口读取和写入数据
函数
tcpclient | 创建 TCP/IP 客户端对象以通过 TCP/IP 进行通信 |
read | 通过 TCP/IP 读取远程主机上的数据 |
write | 通过 TCP/IP 向远程主机写入数据 |
https://ww2.mathworks.cn/help/matlab/tcpip-communication.html?s_tid=CRUX_lftnav
Examples and How To
The MATLAB® TCP/IP client support lets you connect to remote hosts or hardware from MATLAB for reading and writing data.
Configure Properties for TCP/IP Communication
You can use properties to set up the TCP/IP communication and set timeouts.
Write and Read Data over TCP/IP Interface
You can synchronously read and write data to and from the remote host connected to the tcpclient
object.
Concepts
The MATLAB TCP/IP client support uses raw socket communication and lets you connect to remote hosts from MATLAB for reading and writing data over TCP/IP.