MATLAB supports TCP/IP communication using Instrument Control Toolbox.
This MATLAB code example shows you how to exchange data with a remote application using TCP/IP. This example is taken from a MATLAB Digest technical article written by Edward J. Mayhew from George Mason University.
Learn more about using MATLAB with TCP/IP communication at:
https://www.mathworks.com/products/instrument/supported/tcp-ip.html
Cite As
Steve (2026). MATLAB TCP/IP - code example (https://ch.mathworks.com/matlabcentral/fileexchange/11802-matlab-tcp-ip-code-example), MATLAB Central File Exchange. Retrieved .
MATLAB Release Compatibility
Created with
R2006a
Compatible with any release
Platform Compatibility
Windows macOS LinuxCategories
- MATLAB > Data Import and Analysis > Data Import and Export > Hardware and Network Communication > TCP/IP Communication >
Find more on TCP/IP Communication in Help Center and MATLAB Answers
Tags
Discover Live Editor
Create scripts with code, output, and formatted text in a single executable document.
