Hi there
and welcome to the community.
If you want realtime as bonus.
1- You can just write a single file like @Origins says and you can update file with a rate (every 0.2 seconds). You read that file every 0.2 matlab side so its realtimeish.
2- Real Realtime ![]()
In Unreal → UDP → Socket (Message of transforms)-> Matlap (read UDP)
SendMessage : There is a nice forum thread about those over here Communication Between UE4 and a Python UDP Server
ReadMesseage : Matlab seems can receive information like this https://www.mathworks.com/help/instrument/basic-udp-communication.html without any other need.
3- Real Realtime but easier : Install this as instructed. This a ready wrapper similar to explained in 2 but you dont require code, its ready and you can put under your plugins and enable as instructed.
Then you can add UDP component to your actor and send UDP messages realtime like this
On matlab side you can catch these now with a simple listener. On windows you can simply listen UDP to test with GitHub - qinst64/udp-win: Udp socket tool for windows. Include server and client. or netstat commands.
and simply listen data on matlab side with integrated listener.

