I found a (rather sloppy) workaround myself by creating a dummy double precision value to fool the receiving application.
I1 = uint32(x);
I2 = uint32(y);
% Create two 8 hexadecimal byte strings for each of them
I1_hex = dec2hex(I1,8);
I2_hex = dec2hex(I2,8);
% Combine them into a single 16 hexadecimal byte string
hex_string = strcat(I2_hex,I1_hex); % switched order of the ints to comply with the endianness of the readout
% Create a dummy value to send via UDP
dummy = hex2num(hex_string);
This seems to work for the application. As this interface only serves as a testing application it is not terrible that it uses a workaround rather than a solution.