I am trying to use mjvive.cpp as my server and my matlab file as the client, to send input (EMG streams) from Matlab to Mujoco to control the virtual arm (the model typically used in Haptix) via EMG. I am currently attempting to create a socket between Matlab (myomex) and Mujoco Pro (mjvive.cpp) for this sending of data but am unsure how to proceed. I was wondering if you'd have any examples or advice regarding this and whether or not a Matlab feature was ever incorporated with Mujoco? I greatly appreciate any help. Update: I got it working.