Stuart’s MATLAB Videos

Watch and Learn

Using TCP-IP to Communicate Between Two Instances of MATLAB

Posted by Stuart McGarrity,

Here I step through how I implemented communication between two MATLAB instances on two different machines. One MATLAB (the server) stores a 40GB data set that I want another MATLAB web app (the client) to access. This avoids the web app having to re-load this large data set each time. It uses the TCP-IP object in the Instrument Control Toolbox. MATLAB only provides a TCPIP client; not a server. (The audio is a bit out of sync with the video in this one again, but you can only see it in the small picture-in-picture.)

Features covered in this video include:

Follow me (@stuartmcgarrity) if you want to be notified via Twitter when I post.

Play the video in full screen mode for a better viewing experience.