TCP/IP Communication

Read and write data over TCP/IP interface

Functions

tcpclientCreate TCP/IP client object to communicate over TCP/IP
readRead data from remote host over TCP/IP
writeWrite data to remote host over TCP/IP

Examples and How To

Create a TCP/IP Connection

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

TCP/IP Communication Overview

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.