Hello, I have been searching for protocols to communicate matlab and puredata for transfering information using matlab as a client and puredata as a server. I created a matlab code that sends a message to puredata but at the puredata end, I can stablish the connection (I debugged it using a number box) but I am not able to print matlab's message on the editor.
I saw these threads but it didn't work either:
https://forum.pdpatchrepo.info/topic/11188/eof-on-socket-using-netreceive-raspberry-pi
https://stackoverflow.com/questions/17077364/communicating-between-pure-data-and-matlab-using-osc
Here is my matlab code:
clear all;
clc;
tcpipClient = tcpip('127.0.0.1',55002);
set(tcpipClient,'Timeout',30);
fopen(tcpipClient);
fwrite(tcpipClient,'hi, i am matlab');
pause(10);
fclose(tcpipClient);