anyone knows about a possible Matlab/Touch communication?

Hi,

I need to have Touch talk to Matlab if possible. Anyone out there knows both packages and can tell me whether or not these two can talk to each other so that I can get some data from Matlab from my Touch session (and send some back)?

thanks!
dani

It seems there are python interfaces to Matlab that may be of usel.
Just make sure its Python 3.2 compatible.

Looks like Matlab also supports TCP/IP protocol, so you could setup a connection
with a TCP/IP DAT and send commands.

Cheers
Rob

Hello,

The previous posts are quite old now. I was wondering if there was any update on this? Does anyone know an efficient way to link Matlab with TouchDesigner?

I’m getting Matlab to do some data crunching/computer vision, and I would like TouchDesigner to project certain images/videos when my Matlab program outputs certain values.

Thank you!!

DSS

As per Rob’s answer I think you can set up a tcp/ip dialog between the two (Touch has an op for it, not sure how matlab supports that).

I never had to actually do that I think… in fact I can’t even remember why I asked this question 5 years ago ! :slight_smile: but tcp/ip should do it unless they’ve added more dedicated interfaces since then

Looking at the documentation it seems there is a full Python API for Matlab these days, which you can call directly from TouchDesigner.

Matlab Python docs:
mathworks.com/help/matlab/m … ython.html

Connect with python to a running Matlab session:
mathworks.com/help/matlab/m … ssion.html

Sort & display Matlab data in python
mathworks.com/help/matlab/m … ython.html

Read here how to install a Python module for TouchDesigner 099
derivative.ca/wiki099/index … ng_Modules