Using TCP-IP to Communicate Between Two Instances of MATLAB
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:
- tcp-ip object
- fopen, fread, fwrite, fscanf
Play the video in full screen mode for a better viewing experience.
要发表评论，请点击 此处 登录到您的 MathWorks 帐户或创建一个新帐户。