How can I access or use TCP/IP sockets from MATLAB?

3 views (last 30 days)
I want to communicate via TCP/IP using MATLAB. How can I accomplish that?

Accepted Answer

MathWorks Support Team
MathWorks Support Team on 20 Oct 2025
Edited: MathWorks Support Team on 20 Oct 2025
You can communicate via TCP/IP using the tcpclient and tcpserver functions in MATLAB.
For an example on how to communicate between the client and server, please see https://www.mathworks.com/help/instrument/communicate-between-a-tcpip-client-and-server-in-matlab.html

More Answers (0)

Community Treasure Hunt

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

Start Hunting!