Matlab Python UDP Socket

Basic example for UDP communication in Matlab using Python Socket implementation
Updated 16 Mar 2017

View License

This basic example offers an interface for UDP communication using the python socket implementation.
I experienced this method to run more stable in time critical application than the matlab/java UDP socket.
The pyUDPsocket class binds a given port for receiving UDP packets with recv(buffersize) and allows to send packets by using the sendto(ip, port,message) method. As far as I know, all python dependencies should be resolved by the python version that shipped with Matlab.

Cite As

Jan Barowski (2024). Matlab Python UDP Socket (, MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R2017a
Compatible with any release
Platform Compatibility
Windows macOS Linux
Find more on Call Python from MATLAB in Help Center and MATLAB Answers

Community Treasure Hunt

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

Start Hunting!
Version Published Release Notes