This is machine translation

Translated by Microsoft
Mouseover text to see original. Click the button below to return to the English version of the page.

Note: This page has been translated by MathWorks. Click here to see
To view all translated materials including this page, select Country from the country navigator on the bottom of this page.

TCP/IP Communication

Read and write data over TCP/IP interface


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.


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.