I am trying to define a data structure in MATLAB that would contain data of different data types (similar to a structure in C) like so: uint8, uint32, uint8, uint32. What I then want to do is to serialise this data, send it to a Python script (e.g. through UDP) and deserialise them within the Python script. Could anyone suggest an easy way of doing that?
The way I have tried to implement that so far is by creating two different arrays, but I am not quite how to proceed from there:
A=uint8([])
B=uint32([])
A(1) = 2;
B(1) = 222222;